#2222 closed defect (bug) (fixed)
.htaccess Rules Missing [L]
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | high | |
Severity: | normal | Version: | 2.0 |
Component: | General | Keywords: | |
Focuses: | Cc: |
Description
The rules that are outputted automatically by WordPress 2.0 do not contain the [L] flag, denoting the end of rewrite conditions.
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php
</IfModule>
# END WordPress
If any rewrite rules are after this set of code in .htaccess they will inherit the two RewriteCond. To fix this problem all that needs to be done is replacing the last line of the rules with this:
RewriteRule . /index.php [L]
Change History (3)
Note: See
TracTickets for help on using
tickets.
(In [3401]) Add [L] to rewrite rule. Props cavemonkey50. fixes #2222