Mod_rewrite not working properly
Posted
by James P
on Stack Overflow
See other posts from Stack Overflow
or by James P
Published on 2010-06-05T21:55:10Z
Indexed on
2010/06/05
22:02 UTC
Read the original article
Hit count: 180
I have this in my .htaccess
file...
RewriteEngine on
RewriteRule ^/invite$ /invite.html
It's meant to let a user access this url:
http://mysite.com/invite
and display the invite.html
page. I don't want to redirect the user, but just show them the invite.html
page from a better looking URL.
When I browse to http://mysite.com/invite
though, I get a 404 not found error.
Is there anything I'm doing wrong? I've tried looking at tutorials for using mod_rewrite but I seem to be doing what they're telling me too...
Thanks!
© Stack Overflow or respective owner