Archive for the ‘Is .htaccess enabled?’ Category

Is .htaccess enabled?

Posted: July 10, 2009 in Is .htaccess enabled?

how to check that .htaccess is enabled?

It’s unusual, but possible that .htaccess is not enabled on your site. If you are hosting it yourself, it’s easy enough to fix; open your httpd.conf in a text editor, and locate this <Directory> section..

Your DocumentRoot may be different, of course..
# This should be changed to whatever you set DocumentRoot to.

#

<Directory “/var/www/htdocs”>

#

..locate the line that reads..

AllowOverride None

..and change it to..

AllowOverride All

Restart Apache. Now .htaccess will work. You can also make this change inside a virtual host, which would normally be preferable.

If your site is hosted with someone else, check your control panel (Plesk. CPanel, etc.) to see if you can enable it there, and if not, contact your hosting admins. Perhaps they don’t allow this. In which case, switch to a better web host.