Hosting & around

Exclude directory from mod_rewrite

Mod_rewrite, or rather rewriting URLs, it’s a very good solution if you want to transfor your URLs ina more user friendly way, but sometimes it happens that the existing directoriies could be in conflict with the instruction in the .htaccess file placed in the root, a solution in this case it’s to exlude specific directories from mod_rewrite and this is how:

– Create a .htaccess file;
– Write this instruction: RewriteEngine Off
– Upload the file .htaccess in the directory you want to exclude from mod_rewrite.

Now the directory will not be processed by the .htaccess fiel in the root