Welcome to WebmasterWorld Guest from 54.167.157.247

Forum Moderators: phranque

Message Too Old, No Replies

Subdomains

newbie needs help

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

10+ Year Member



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)

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



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)

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



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.