.htaccess not working with CentOS

May 29, 2015 4k views
Apache CentOS

I have added to /etc/httpd/conf/httpd.conf the following lanes:

<Directory /home/admin/web/default.domain/public_html>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>

then restarted httpd service

but still my .htaccess has no effect on my website. What it could be? I am using VestaCP

1 Answer

Hey there,

For VestaCP installed on CentOS, the Apache configuration file you're looking for is:

/home/admin/conf/web/httpd.conf

Happy coding,

Jon Schwenn
Platform Support Specialist
DigitalOcean

Have another answer? Share your knowledge.