| Shared Hosting Questions about your shared hosting account. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread |
|
|
#1 (permalink) |
|
Registered User
Fresh Surpasser
Joined in Feb 2007
4 posts
Gave thanks: 0
Thanked 0 times
|
Password Protect / Directory of Main Domain, but not Addon Domain.
Hi,
What I'm trying to accomplish, is password protecting the / directory of the main domain, however not the addon domain. Since the addon domain is a directory under public_html, it will also be password protected. |
|
|
|
|
|
#2 (permalink) |
|
Surpass Developer
Excelling Contributor
Joined in Jan 2004
Lives in Florida
Hosted on core.surpasshosting.com
731 posts
Gave thanks: 32
Thanked 96 times
|
Hello Alan,
Simply create a .htaccess file in the addon domain's directory and put these 3 lines in it: Code:
order deny,allow allow from all deny from none ![]() |
|
|
|
|
|
#4 (permalink) |
|
Surpass Fan
Excelling Contributor
Joined in Mar 2006
Hosted on SH100,SH124 & SH131
530 posts
Gave thanks: 128
Thanked 24 times
|
Wait, what are you trying to do exactly? Did you password protect your main directory above your public one? If so that will cause a lot of problems.
If you want to password protect a single directory then just do that one only. Your add_on domain should be in another separate directory that is on the same level as the password protected one.
__________________
SH100 , SH131 & SH124 |
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
|
|