InMotion Hosting Support Center

How does locking down WordPress admin login with .htaccess work with addon domains?

Category: File Management

2013-08-09 7:31 am EST

Hits: 1,126
I have a WordPress website with my mail domain ( and also a WordPress wesite in an addon domain. If I add the code to .htaccess to limit referrer access as instructed on tne support center page (, using the root domain, won't that block referrers from the addon domains?

You must login before you can ask a follow up question.

You must login before you can submit an answer.



18,924 Points
2013-08-09 7:55 am EST
Hello RanMan,

Thank you for contacting us, this is a good question. The .htaccess file in the root folder will affect your addon domains, but you can avoid this by creating a new file named .htaccess in the root folder for your Addon domains.

This will cause the addon domain to use its own .htaccess file settings.

If you have any further questions, feel free to post them below.
Thank you,


You must login before you can post a comment about this answer.

Thanks, John-Paul, but I'd like to clarify something.
Does creating a .htaccess file in an addon domain OVERRIDE a .htaccess file in the root? I ask because I have a blog in the root domain and would need to have a .htaccess file there with the root domain as the parameter for the referring domain. If I have one there and create another one in the addon domain with the addon domain as the referring domain parameter, what will be the effect?
13 Points
2013-08-09 9:15 am EST
Hello RanMan,

Having a .htaccess file in the root of an Addon domain, will not override or affect the functionality of your primary domain's .htaccess.

Each site will have its own .htaccess file, that you can modify independently.

If you have any further questions, feel free to post them below.
Thank you,

18,924 Points
2013-08-09 9:32 am EST
Like this Question?

Support Center Login

Social Media Login

Social Login Joomla

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Need more Help?


Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail:
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!