Can I config. Apache to ignore .htaccess files?
Posted: 26. October 2009 17:30
Can I config. Apache to ignore .htaccess files?
I have most sites to rewrite to include the "www." ahead of domain names if they are not included by the viewer. ( SEO thing ) but this means local viewing is not possible because I am redirected by .htaccess to the online site on my production server.
I don't want to remove or rename these files locally so prefer to find a way to tell Apache to ignore .htaccess files or at least the redirection. I could not make heads or tails out of the Apache web site in this regard.
1st Choice is for .htaccess files to function but to block page re-directions. 2nd choice is to block all .htaccess if the first option in not possible.
Thanks.
I have most sites to rewrite to include the "www." ahead of domain names if they are not included by the viewer. ( SEO thing ) but this means local viewing is not possible because I am redirected by .htaccess to the online site on my production server.
I don't want to remove or rename these files locally so prefer to find a way to tell Apache to ignore .htaccess files or at least the redirection. I could not make heads or tails out of the Apache web site in this regard.
1st Choice is for .htaccess files to function but to block page re-directions. 2nd choice is to block all .htaccess if the first option in not possible.
Thanks.