: Why does Apache parse .htaccess if accessed through the main page and not through a VirtualHost? I have two websites. One is hosted on /var/www (www.example.com) and the other is /var/www/test
I have two websites. One is hosted on /var/www (www.example.com) and the other is /var/www/test (test.example.com). The second is a VirtualHost.
I wrote a .htaccess (I'm using it to mod_rewrite), put it into /var/www/test, and enabled AllowOverride all on the /var/www <Directory>.
Yet, when I go to the webpage example.com/test, Apache processes it, while if I go to test.example.com it doesn't.
What can I do to fix the problem?
More posts by @XinRu657
1 Comments
Sorted by latest first Latest Oldest Best
Add AllowOverride All in the directory settings within the vhost and that should solve your issues.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.