[wp-hackers] Rewrite Experiment

Arthur Jennings timeistight at gmail.com
Sat Sep 18 17:48:58 UTC 2004


I used to to use ascheme like that when I was running Blosxom. One
problem with it was that *everything* goes to index.php -- you can't
tell if there are 404s (unless there's some way for wp to generate
404s.


On Sat, 18 Sep 2004 02:49:15 -0500, Ryan Boren <ryan at boren.nu> wrote:
> On Sat, 2004-09-18 at 02:41 -0500, Ryan Boren wrote:
> > 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?
> 
> Oops.  I sent the wrong version.  That one is missing the -d test. Try
> this:
> 
> RewriteEngine On
> RewriteBase /
> RewriteCond %{REQUEST_FILENAME} !-f
> RewriteCond %{REQUEST_FILENAME} !-d
> RewriteRule ^(.+)$ /index.php/$1
> 
> 
> 
> 
> Ryan
> 
> _______________________________________________
> hackers mailing list
> hackers at wordpress.org
> http://wordpress.org/mailman/listinfo/hackers_wordpress.org
> 



-- 
Arthur Jennings
http://www.timeistight.com



More information about the hackers mailing list