View Single Post
  #2 (permalink)  
Old 09-03-2007, 03:17 PM
purp purp is offline
Junior Member
 
Join Date: Sep 2007
Posts: 2
Default

Fixed the 404 issue.

I had 'AllowOverride All' inside here:
Code:
<Directory "/Library/WebServer/Documents">
... but my VirtualHost is pointing to my Sites directory, so it didn't apply there. Adding a <directory> specifically for that fixed it:
Code:
<Directory /Users/me/Sites/*>
Options FollowSymlinks
AllowOverride All
</Directory>
Got help from this wiki entry, btw: RewriteHtaccessIgnored - Httpd Wiki

Hm, also, it now looks like the 403 issues with putting all the mod_rewrite stuff inside httpd.conf are gone by adding this directory directive. (I moved my .htaccess file, and it still seems to be working correctly.)

Hope this helps any OS X user out there:

1. Set up your virtual host so you can get to your document root without any slashes (which will be interpreted as controllers, etc.).
2. Make sure to add a <Directory> for your Sites folder with AllowOverride All.

Last edited by purp : 09-03-2007 at 03:23 PM. Reason: Added info about 403 success
Reply With Quote