Htaccess overwrites, not working on localhost

While there are many similar posts, I read them all to no avail. Let me describe my situation in the hope that someone can solve this problem. I have the following .htaccess file living in /Users/myusername/Sites/domain.com/public_html/.htaccess. The DocumentRoot parameter is set to /Users/myusername/Sites/domain.com/public_html.

RewriteEngine on
options +FollowSymLinks

RewriteBase /demo 
RewriteRule ^/demo/evaluate/1$ /demo/evaluate/index.php?eval_id=1 [L]

Now for the settings:

  • "LoadModule rewrite_module modules / mod_rewrite.so" in httpd.conf is uncommented.
  • "AllowOverride All" is everywhere

htaccess redirects work, but for some reason, I just keep getting the following error in the error logs:

[Sun Apr 22 11:14:09 2012] [error] [client ::1] File does not exist: /Users/myusername/Sites/domain.com/public_html/demo/evaluate/1

Please let me know if you need more information.


Honestly, not sure what happened. I didn’t change anything.

, . . , , .

+3
2

RewriteRule :

RewriteRule ^demo/evaluate/1$ demo/evaluate/index.php?eval_id=1 [NC,QSA,L]
0

RewriteBase /demo 
RewriteRule ^/demo/evaluate/$1 /demo/evaluate/index.php?eval_id=$1 [L]
0

All Articles