Ticket #2222 (closed defect (bug): fixed)

Opened 6 years ago

Last modified 5 years ago

.htaccess Rules Missing [L]

Reported by: cavemonkey50 Owned by: anonymous
Priority: high Milestone:
Component: General Version: 2.0
Severity: normal Keywords:
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

comment:1   ryan6 years ago

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

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

comment:2   ryan6 years ago

  • Milestone changed from 2.1 to 2.0.1
  • Milestone 2.0.1 deleted

Milestone 2.0.1 deleted

Note: See TracTickets for help on using tickets.