htaccess Elite

.htaccess tutorial


All times are UTC [ DST ]





Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: WordPress RewriteRule Explanation
PostPosted: 26 Aug 2007 18:07 
Offline

Joined: 01 Nov 2006 05:19
Posts: 25
Code:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]


The rewrite rule matches anything that is not emptystring
and forwards it to the WordPress index.php.

Rules prior to that one cause that rule to execute only if the file or
directory that is requested doesn't physically exist. So if you have a
file called "ku.php" in your web root and someone makes a request
for it, then they receive it. But if someone makes a request for
ku.php and the file isn't present, then the request is redirected
toward WordPress' index.php.

From there, the WP_Rewrite class takes over. This class is located in
/wp-includes/classes.php



To ovverride:

Code:
RewriteCond %{REQUEST_URI} ^/(stats/?|missing\.html|failed_auth\.html) [NC]
RewriteRule .* - [L]


RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Google Adsense [Bot] and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB