ABHIONLINUX
Site useful for linux administration and web hosting

2009/12/15

how to disable htaccess for domain account

You can disable .htaccess for a particular domain by editing the /etc/httpd/conf/httpd.conf file & following the below mentioned steps:

Open the /etc/httpd/conf/httpd.conf file.
Search for the “AllowOverride None” string.

directory “/”
AllowOverride None
Directory

Append it by:

directory “/home/username/public_html”
AllowOverride None
Directory

Such that it looks like:

directory “/"
AllowOverride None
Directory

directory “/home/username/public_html”
AllowOverride None
Directory

Restart the httpd/apache service on the server

This would disable the .htaccess for that particular account/domain.

No comments:

Post a Comment