2

I've been messing with .htaccess for a while, and have the following rule:

RewriteRule ^(mypage|myotherpage)/?$ main.php?p=$1 [L,QSA]

If I enter http://mydomain.com/mypage/, it displays main.php as desired.

If I enter http://mydomain.com/mypage (note the lacking trailing backslash), it redirects to http://mydomain.com/mypage.html, and obviously displays a 404 Not Found error. I've tried this same URL using Chrome on the same PC, and it doesn't add the .html. I've also tried the same URL on FireFox on another PC, and again it doesn't add the .html.

Earlier when messing with .htaccess, I had rules which added .html to the URL. I've since gotten rid of these rules, but wonder if FF somehow buffered them?

Any thoughts? Thanks

user1032531
  • 1,711

0 Answers0