Welcome to WebmasterWorld Guest from 54.162.183.2

Forum Moderators: phranque

Message Too Old, No Replies

Subdomains

newbie needs help

     
8:55 pm on Feb 26, 2002 (gmt 0)

New User

10+ Year Member

joined:Nov 28, 2001
posts:25
votes: 0


I have taken over a site which has several subdomains one.mysite.com, two.mysite.com, ect. I would like to continue to use these address, but get them to be directed www.mysite.com/one, www.mysite.com/two.

This is probably really simple, but I have been wrestling with it for a while.

Thanks for any help or advice in advance.

12:40 am on Feb 27, 2002 (gmt 0)

Senior Member

WebmasterWorld Senior Member wilderness is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Nov 11, 2001
posts:5437
votes: 2


In your htaccess add:

RedirectMatch 301 /one.mysite.com/(.*)$ [mysite.com...]

RedirectMatch 301 /two.mysite.com/(.*)$ [mysite.com...]

8:10 am on Mar 6, 2002 (gmt 0)

Administrator from US 

WebmasterWorld Administrator brett_tabke is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Sept 21, 1999
posts:38057
votes: 12


dabrisz, welcome to the forums.

The approach wilderness suggested is the best approach if you have that available. If not, a good old meta refresh is available.