I would like it so that when the user goes to
http://mysite.com/home
that it redirects him to http://mysite.com/page.php?id=home
. This is what I put in my .htaccess, but it doesn't seem to work.
RewriteEngine On
RewriteRule ^/(.+)$ page.php?id=$1 [NC,L]
It just sends me to the /home directory, with a nice 404. Help is appreciated. Thanks.
Edit:
I've tried some rewrite I know work, so now I'm certain it's not that my problem. I checked with phpinfo()
and yes, mod rewrite is running, I set up apache2 with LAMP, I'm running the latest version of Linux Mint.