RewriteRule in .htaccess not working
问题 I am currently running Apache2 on my local machine, installed with the latest version of Ubuntu. I am trying to get basic URL rewriting working by using the .htaccess file. The file "http://localhost/page.php?=home" does exist, and the location "/doesnotexist/home" does not. I would like to have the first page be loaded when the second is requested. My .htaccess file looks like this: RewriteEngine On RewriteRule ^/doesnotexist/(.*)$ /page.php?p=$1 My httpd.conf file looks like this: