.htaccess not working?

If you find that you have a proven/tested .htaccess file but for some unknown reasons, you cannot make it work on other server, one thing to check is that if you set "AllowOverride" to "All" instead of "None".

"None" means .htaccess cannot be override.

My example:  My web directory is under htdocs/:

<Directory "/usr/local/apache2/htdocs">
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   AllowOverride FileInfo AuthConfig Limit
    AllowOverride All

It costed me 1 day to find that out....

Hope it helps someone.


Popular posts from this blog

TCPDF How to show/display Chinese Character?

Wordpress Load balancing: 2 web servers 1 MySQL without any Cloud services

Using wget bypass htaccess username password 401 authorization