I have a WordPress site running on a production server that I recently copied to my Mac. When I want to view the site on my Mac, I go here and it works fine:
http://localhost/jasonswett.net/web/
But then when I try to view any post it doesn’t work. If I go here
http://localhost/jasonswett.net/web/tar-examples/
I get an error that says, “The requested URL /jasonswett.net/web/tar-examples/ was not found on this server.”
I know mod_rewrite is enabled because I see it when I do a phpinfo(). My htaccess file is a straight copy from production.
Any idea what the problem could be?
It sounds like the AllowOverride directive is not properly set for that folder. In your Apache configuration, you should make sure that the Directory or Vhost you’re using for the primary domain has the AllowOverride set to All
http://httpd.apache.org/docs/2.0/mod/core.html#allowoverride