Issue
I've been trying for a few hours and cannot get around to why an out-of-box WordPress instance with Permalinks enabled works when it is in "C:\wamp\www"
whereas the same duplicate will receive a "404 Not Found" when place in a folder outside of "www"
folder, say "C:\projects"
?
I believe the httpd-vhosts.conf
is configured correctly, but just in case here's a paste of the 2 vhost setups.
<VirtualHost *:80>
DocumentRoot "C:\wamp\www"
ServerName localhost
<Directory "C:\wamp\www">
AllowOverride All
Require local
</Directory>
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "C:\wamp\www\wordpress-lorem"
ServerName wordpress-lorem.localhost.com
<Directory "C:\wamp\www\wordpress-lorem">
Order Allow,Deny
Allow from All
Require local
</Directory>
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "C:\Projects\wordpress-ipsum"
ServerName wordpress-ipsum.localhost.com
<Directory "C:\Projects\wordpress-ipsum">
Order Allow,Deny
Allow from All
Require local
</Directory>
</VirtualHost>
- Site
wordpress-lorem.localhost.com
will work problem free. - While
wordpress-ipsum.localhost.com
will have problem with its permalinks (works fine when permalinks are switched off).
Experimented on Windows 8.1 64-bit and WampServer 2.5.
Solution
Looks like you're missing the "AllowOverride All" In the directory section in the additional vhost. This prevents your htaccess from working...
Answered By - ROunofF