Make WordPress Core

Opened 19 years ago

Closed 19 years ago

#2169 closed defect (bug) (fixed)

WordPress Breaks rewrite rules

Reported by: denis-de-bernardy's profile Denis-de-Bernardy Owned by:
Milestone: Priority: normal
Severity: major Version: 2.0
Component: General Keywords:
Focuses: Cc:

Description (last modified by skippy)

RewriteRule ^cats(.+)/?$ /tags$1 [QSA,L]
RewriteRule ^tag/(.+)/?$ /tags/$1 [QSA,L]
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php
</IfModule>
# END WordPress

http://www.semiologic.com/tags/wordpress/ works
http://www.semiologic.com/cats/wordpress/ should redirect to the above but does not work

Change History (5)

#1 @skippy
19 years ago

  • Description modified (diff)

Shouldn't that look like this?

RewriteEngine On
RewriteBase /
RewriteRule ^cats(.+)/?$ /tags$1 [QSA,L]
RewriteRule ^tag/(.+)/?$ /tags/$1 [QSA,L]

#2 @Denis-de-Bernardy
19 years ago

  • Severity changed from critical to major

Fix:

RewriteRule ^cats(.+)/?$ /tags$1 [r=301,nc,l]

That said, I expect a to see *a lot* of support requests in the forum because of this.

#3 @Denis-de-Bernardy
19 years ago

@ Skippy: indeed, but my .htaccess file is rather long so I cut the top of it.

#4 @matt
19 years ago

You can't have rewrite rules before RewriteEngine On. This is really more appropiate for the support forum?

#5 @Denis-de-Bernardy
19 years ago

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.