I would like the user http://mysite.com/home to redirect him to http://mysite.com/page.php?id=home . This is what I put in my .htaccess, but it does not seem to work.
RewriteEngine On RewriteRule ^/(.+)$ page.php?id=$1 [NC,L]
It just sends me to the / home directory, with a good 404. Help is appreciated. Thanks.
Edit:
I tried to rewrite, I know the work, so now I am sure that this is not my problem. I checked with phpinfo() and yes, mod rewrite is running, I configured apache2 using LAMP, I am running the latest version of Linux Mint.
Alexandre Hitchcox
source share