Question

Subdomain .htaccess not working

Posted July 4, 2014 2.1k views

Hello.

In the root (var/www/domain.tld) .htaccess working fine but in the subdomain root (var/www/sub.domain.tld) .htacces not working.

What should I do?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer

Solved.

I change:
DocumentRoot “/var/www/itsweird.net/publichtml” to DocumentRoot “/var/www”
and
<Directory “/var/www/itsweird.net/public
html”> to <Directory “/var/www”>

Submit an Answer