| URL Redirection For Main DNS Question... [message #901] |
Thu, 13 March 2008 15:45  |
wolfcreek Messages: 3 Registered: March 2008 |
|
|
|
I have the trouble of developing an htaccess for a site that wants URL's to route to subdomains and hide the current subdomain.
e.g.: http://www.mysite.com, http://sub1.mysite.com, http://sub2.mysite.com
sub1=www.yoursite.com and sub2=www.oursite.com
Any suggestions? I have this as an idea, but need some input:
RewriteCond %{HTTP_HOST} domain-one.com
RewriteCond %{REQUEST_URI} !^/one
RewriteRule ^(.*)$ one/$1 [L]
RewriteCond %{HTTP_HOST} domain-two.com
RewriteCond %{REQUEST_URI} !^two
RewriteRule ^(.*)$ two/$1 [L]
RewriteCond %{HTTP_HOST} domain-three.com
RewriteCond %{REQUEST_URI} !^/three
RewriteRule ^(.*)$ three/$1 [L]
Am I on the right path with this?
Wolf.
|
|
|
|
| Re: URL Redirection For Main DNS Question... [message #922 is a reply to message #901 ] |
Fri, 18 April 2008 16:22   |
wolfcreek Messages: 3 Registered: March 2008 |
|
|
|
I'm not redirecting, as such. I'm trying to rewrite URL from http://subsite1.mysite.com to http://yoursite.com. The subsite is actually the site location, but we want to rewrite the URL to suggest a hosted area from the main URL registered.
Is this even possible?
Wolf.
|
|
|
|
| Re: URL Redirection For Main DNS Question... [message #930 is a reply to message #929 ] |
Fri, 18 April 2008 19:36  |
wolfcreek Messages: 3 Registered: March 2008 |
|
|
|
|
Wouldn't that kill SEO?
|
|
|