Singapore & Australia # 1 for Web Hosting & Domains
SG: +65 6914-7888   AU: 1300-863-436 Asset 1colo Help
Vodien Logo
  1. Home
  2. Knowledge Base
  3. Web Hosting
  4. Prevent .htaccess Inheritance

Prevent .htaccess Inheritance

With .htaccess inheritance, it forces the current configuration to inherit or obtain the parent directory’s configuration. In per-virtual-server context, it means that maps, conditions, and rules of the main server are inherited. In per-directory context, it means that the conditions and rules of the parent directory’s .htaccess configuration are also inherited.

Rules inherited from the parent scope are applied after rules are specified in the child scope. Making the child directory (addon or subdomain) would take the .htaccess of their parent directory (main domain).

To resolve this, you can create a new .htaccess file in the child directory and place the following code in:

RewriteEngine On

Please don’t hesitate to contact our 24/7 Singapore or Australia Support Team, they’ll be happy to help out.

(Visited 478 times, 1 visits today)
Updated on October 14, 2020

Was this article helpful?

Related Articles