[wp-testers] Can we delete this code from classes.php?
Kirk Steffensen
blogger at steffensenfamily.com
Thu Feb 2 04:16:03 GMT 2006
Andy,
There are actually three .htaccess files that are of interest, because I
have my WP index.php in my root / directory with all of the other WP files
in /wordpress/ directory and the Gallery2 files in /gallery2/.
****************
Here is the relevant part of /.htaccess (the rest is permanent redirects of
changed folder names that don't affect the main site):
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
****************
****************
Here is /wordpress/.htaccess
# BEGIN Url Rewrite section
# (Automatically generated. Do not edit this section)
<IfModule mod_rewrite.c>
Options +FollowSymlinks
RewriteEngine On
RewriteBase /wordpress/
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d [OR]
RewriteCond %{REQUEST_FILENAME} gallery\_remote2\.php
RewriteCond %{REQUEST_FILENAME} !wp-gallery2\.php
RewriteRule . - [L]
RewriteCond %{THE_REQUEST} \ /wordpress/v/(\?.|\ .)
RewriteCond %{REQUEST_FILENAME} !wp-gallery2\.php
RewriteRule . /wordpress/wp-gallery2.php?g2_view=core.ShowItem
[QSA,L]
RewriteCond %{THE_REQUEST} \
/wordpress/d/([0-9]+)-([0-9]+)/([^\/]+)(\?.|\ .)
RewriteCond %{REQUEST_FILENAME} !wp-gallery2\.php
RewriteRule .
//gallery2/main.php?g2_view=core.DownloadItem&g2_itemId=%1&g2_serialNumber=%
2 [QSA,L]
RewriteCond %{THE_REQUEST} \ /wordpress/v/([^?]+)(\?.|\ .)
RewriteCond %{REQUEST_FILENAME} !wp-gallery2\.php
RewriteRule .
/wordpress/wp-gallery2.php?g2_view=core.ShowItem&g2_path=%1 [QSA,L]
</IfModule>
# END Url Rewrite section
****************
****************
Here is /gallery2/.htaccess
# BEGIN Url Rewrite section
# (Automatically generated. Do not edit this section)
<IfModule mod_rewrite.c>
Options +FollowSymlinks
RewriteEngine On
RewriteBase //gallery2/
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d [OR]
RewriteCond %{REQUEST_FILENAME} gallery\_remote2\.php
RewriteCond %{REQUEST_FILENAME} !main\.php
RewriteRule . - [L]
RewriteCond %{THE_REQUEST} \ //gallery2/v/(\?.|\ .)
RewriteCond %{REQUEST_FILENAME} !main\.php
RewriteRule . //gallery2/main.php?g2_view=core.ShowItem [QSA,L]
RewriteCond %{THE_REQUEST} \
//gallery2/d/([0-9]+)-([0-9]+)/([^\/]+)(\?.|\ .)
RewriteCond %{REQUEST_FILENAME} !main\.php
RewriteRule .
//gallery2/main.php?g2_view=core.DownloadItem&g2_itemId=%1&g2_serialNumber=%
2 [QSA,L]
RewriteCond %{THE_REQUEST} \ //gallery2/v/([^?]+)(\?.|\ .)
RewriteCond %{REQUEST_FILENAME} !main\.php
RewriteRule . //gallery2/main.php?g2_view=core.ShowItem&g2_path=%1
[QSA,L]
</IfModule>
# END Url Rewrite section
****************
Hope this helps.
Thanks,
Kirk
-----Original Message-----
From: wp-testers-bounces at lists.automattic.com
[mailto:wp-testers-bounces at lists.automattic.com] On Behalf Of Andy Skelton
Sent: Wednesday, February 01, 2006 10:08 PM
To: wp-testers at lists.automattic.com
Subject: Re: [wp-testers] Can we delete this code from classes.php?
Kirk, could you send along your .htaccess or a link to a text file
containing same?
_______________________________________________
wp-testers mailing list
wp-testers at lists.automattic.com
http://lists.automattic.com/mailman/listinfo/wp-testers
More information about the wp-testers
mailing list