IndianWebPortal.com

Something Different In Linux

Home » htaccess » How to make root domain .htaccess not affect to addon domain

Some time the root domain .htaccess file rule affect to addon domains. So you can not access your addon domain properly. If you want to disable this rule for the addon domain then you need to add the following rule in the root domain .htaccess file.

RewriteCond %{HTTP_HOST} ^(www\.)?addon_domain\.com
Rewriterule .* - [L]

for example addon domain is indianwebportal.com then rule is

RewriteCond %{HTTP_HOST} ^(www\.)?indianwebportal\.com
Rewriterule .* - [L]

Note : Where addon_domain should be replaced by the actual domain name, and I’m assuming that both addon_domain.com and www.addon_domain.com exist and resolve to your server.


Popular Posts

remove index.php fro

How to remove index.php from url in magento Ans : If you ...

PHP-Java bridge on p

  What is php-java bridge? The php-java bridge is the php ...

Set expiration for y

If you want to set the expiration to your site ...

Warning: Parameter 1

Error: Warning: Parameter 1 to modMainMenuHelper::buildXML() expected to be a ...

domain pointing to e

If you domain uses external MX record and it is ...