Reputation: 4698
I am using .htaccess
' RewriteRule
to redirect a url to the proper page for a client, everything works fine, except for Rewriting the word catalogue! I get a 403 forbidden error.
This is my code:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^catalogue$ /catalogue.php
</IfModule>
This results in this:
Now, what is driving me crazy is, if i switch the code to RewriteRule ^catalog$ /catalogue.php
or RewriteRule ^cataloguee$ /catalogue.php
and browse to the respective url, the page displays without the error.
Any ideas why this is occuring?
Upvotes: 1
Views: 2146
Reputation: 143886
It looks like what's happening is some kind of DirectorySlash
functionality is kicking in (adds a trailing slash when it thinks you're trying to access a directory). It's probably better not to turn that off so just match against the URI with the trailing slash:
RewriteRule ^catalogue/?$ /catalogue.php [L]
Upvotes: 1