Getting mod_rewrite To Work

Evilguru

Registered
I am currently playing around with the Zend Framework, but am having trouble getting mod_rewrite to work. I have enabled .htaccess files in my user directory to over-ride any settings in /etc/httpd/httpd.conf and then downloaded a tutorial/example and placed it into /Users/freddie/Sites/zf-tutorial/

The .htaccess file in /Users/freddie/Sites/zf-tutorial looks like this:
Code:
RewriteEngine on
Options +FollowSymlinks
RewriteRule .* index.php
However, I find then when I go to http://localhost/~freddie/zf-tutorial/ I get a 404 telling me that: "The requested URL /Users/freddie/Sites/zf-tutorial/index.php was not found on this server."

The error log reveals:
Code:
[Sun Mar 25 14:26:24 2007] [error] [client 127.0.0.1] File does not exist: /Library/WebServer/Documents/Users/freddie/Sites/zf-tutorial/index.php

What do I need to do to get it to work?

Regards, Freddie.
 
Back
Top