Make WordPress Core

Opened 19 years ago

Closed 19 years ago

Last modified 18 years ago

#2222 closed defect (bug) (fixed)

.htaccess Rules Missing [L]

Reported by: cavemonkey50's profile cavemonkey50 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)

#1 @ryan
19 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [3401]) Add [L] to rewrite rule. Props cavemonkey50. fixes #2222

#2 @ryan
19 years ago

  • Milestone changed from 2.1 to 2.0.1

#3 @(none)
18 years ago

  • Milestone 2.0.1 deleted

Milestone 2.0.1 deleted

Note: See TracTickets for help on using tickets.