| Shared Hosting Questions about your shared hosting account. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread |
|
|
#1 (permalink) |
|
Registered User
Seasoned Poster
Joined in Mar 2006
Hosted on SH95 (72.29.90.43)
49 posts
Gave thanks: 4
Thanked 2 times
|
I am setting up multiple corporate catalogs for a client, and one of their clients has three identities, but it in reality will all be one catalog. each client catalog has a subdomain.
Let us assume 4 clients, so 4 subdomains. Sub_1, Sub_2, Sub_3, Sub_4, and Sub_5 (you will see why 5 in a second) will act as the subdomains in this case. Sub_1 is an independent client and is out of the equation, so lets not worry about it expect to say that Sub_1 is one of many reasons the others can not be in the root directory. Sub_2, Sub_3, and Sub_4 is the normal way those clients will navigate to the site. Sub_5 holds the actual site that Sub_2, Sub3, and Sub_4 will be visiting, so I need to redirect all three of those subdomains to Sub_5. I am not sure I can do this in cPanel, but I think I can with a .htaccess file in my root. So finally here is the question, if I have a file in my root that contains this: Code:
Redirect /Sub_2 /Sub_5 Redirect /Sub_3 /Sub_5 Redirect /Sub_4 /Sub_5
__________________
T313C0mun1s7 PASS65 (72.29.93.65) - Reseller ======================== |
|
|
|
|
|
#2 (permalink) |
|
Race Surpass
Super #1
Joined in Jul 2006
Lives in Oklahoma City, OK
Hosted on sh102
1,222 posts
Gave thanks: 18
Thanked 86 times
|
One thing I do know. With redirecting, the browser's address bar will look like whatever the subdomain/directory you are redirecting to. So with this example, the address bar will look like http://sub_5.domain.com after the redirection. If you don't want this to happen, then what you need to do is have each subdomain act like a parked domain that points to the sub_5 folder as their root folder so that the URL doesn't change in the browser.
I believe that support can make this happen for you if that's what you want. Well, at least they said they could do that for me when I wanted to make a subdomain of an add-on domain have as its root a folder within the add-on domain. Mark H.
__________________
|
|
|
|
|
|
#3 (permalink) |
|
Registered User
Seasoned Poster
Joined in Mar 2006
Hosted on SH95 (72.29.90.43)
49 posts
Gave thanks: 4
Thanked 2 times
|
I am in a time crunch, and I am not sure if support would get to this quick enough. I wonder if cPanel would handle doing a parked domain to a subdomain? Hmm...
It's just that I heard using cPanel to mix subdomains and redirects (which is essentially what a parked domain is) is a
__________________
T313C0mun1s7 PASS65 (72.29.93.65) - Reseller ======================== |
|
|
|
|
|
#4 (permalink) |
|
minor deity
Super #1
Joined in Apr 2004
Lives in Georgia
Hosted on XEON
7,387 posts
Gave thanks: 28
Thanked 94 times
|
You can park a domain to a subdomain.
You just don't create a subdomain then a redirect for that same subdomain (i.e. create 'site5.domain.com' as a sub, then create a redirect for 'site5.domain.com > /site5' Follow? John
__________________
Proud to be a Surmunity Mod! XEON Make a fundamental difference! My Sites: Curious about Brewing Beer? Join the community! >>>>> Some Change is GOOD! Keep your paycheck! Support the Fair Tax Get into an Art museum Victorian London It's your brain -ON WEB - mybrainhost.com (under development) What SHOULD Government do? Much Less than it Does! |
|
|
|
|
|
#5 (permalink) |
|
Registered User
Seasoned Poster
Joined in Mar 2006
Hosted on SH95 (72.29.90.43)
49 posts
Gave thanks: 4
Thanked 2 times
|
Actually I just did it with a .htaccess file in the root of each sub I wanted to redirect.
Code:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^sub_2.domain.net$ [OR]
RewriteCond %{HTTP_HOST} ^www.sub_2.domain.net$
RewriteRule ^(.*)$ http://sub_5.domain.net [L]
I have this one solved. Thank you.
__________________
T313C0mun1s7 PASS65 (72.29.93.65) - Reseller ======================== |
|
|
|