Home » Htaccess Tools » Questions regarding htaccess » URL Redirection For Main DNS Question...
URL Redirection For Main DNS Question... [message #901] Thu, 13 March 2008 15:45 Go to next message
wolfcreek  is currently offline 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 #920 is a reply to message #901 ] Fri, 18 April 2008 14:37 Go to previous messageGo to next message
andreas  is currently offline andreas
Messages: 239
Registered: January 2005
Location: Denmark

Site Admin
Sorry, I dont understand your question. Do you want to redirect http://sub1.mysite.com/ to http://www.yoursite.com/

Make post real URL so I can better understand what you are trying to do.
Re: URL Redirection For Main DNS Question... [message #922 is a reply to message #901 ] Fri, 18 April 2008 16:22 Go to previous messageGo to next message
wolfcreek  is currently offline 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 #929 is a reply to message #922 ] Fri, 18 April 2008 18:28 Go to previous messageGo to next message
andreas  is currently offline andreas
Messages: 239
Registered: January 2005
Location: Denmark

Site Admin
No, thats not possible. You could use one big frame on your subdomain and have the frame open http://yoursite.com./
Re: URL Redirection For Main DNS Question... [message #930 is a reply to message #929 ] Fri, 18 April 2008 19:36 Go to previous message
wolfcreek  is currently offline wolfcreek
Messages: 3
Registered: March 2008
Wouldn't that kill SEO?
Previous Topic:How to Allow Access from HTTP Referer?
Next Topic:301 Redirect of .php files to html under sub-folder
Goto Forum:
  


Current Time: Sat May 17 07:43:45 CEST 2008

Powered by: FUDforum 2.7.7.
Copyright ©2001-2007 FUD Forum Bulletin Board Software