Allow Override
You can improve the performance of your website by disabling AllowOverride in all directories except the ones which contain an .htaccess file.
If AllowOverride is enabled for your entire website, each directory is searched for it’s own .htaccess file, and most directories will not contain one. To specify which directories contain an .htaccess file and which ones do not, we use AllowOverride.
Disable AllowOverride in your root folder (i.e. /home or /public_html) and enable AllowOverride only in directories which contain an .htaccess file.
To disable AllowOverride in your root folder, place the following code in your .htaccess file:
Then, for each folder which contains an .htaccess file, place the following code:
AllowOverride Options
</Directory>
Just substitute the “/public_html/foldername” path with the path to the directory which the .htaccess file exists.




