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

Category: File Management

RanMan
Asked:
2013-08-09 7:31 am EST

Hits: 1,097
I have a WordPress website with my mail domain (aofuturo.com.br/blog) 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 (http://www.inmotionhosting.com/support/website/wordpress/lock-down-wordpress-admin-login-with-htaccess), 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.

OTHER ANSWERS

0

johnpaulb-imhs1
Staff
7,266 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,

-John-Paul

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?
RanMan
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,

-John-Paul
johnpaulb-imhs1
7,266 Points
Staff
2013-08-09 9:32 am EST
Like this Question?

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?

Search

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: support@InMotionHosting.com
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!