[wp-hackers] Rewrite Experiment

Ryan Boren ryan at boren.nu
Sat Sep 18 07:41:25 UTC 2004


Get rid of all of your rewrite rules and replace them with this:

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.+)$ /index.php/$1

Adjust your base accordingly.  If you're running from a subdir, let's
say "wordpress", you'll need:

RewriteEngine On
RewriteBase /wordpress/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.+)$ /wordpress/index.php/$1

Does it work?

Ryan




More information about the hackers mailing list