Forum Moderators: phranque

Message Too Old, No Replies

301 redirect for a sub-subdomain?

         

Edwin

9:55 pm on Jan 5, 2006 (gmt 0)

10+ Year Member



I have successfully implemented .htaccess-based 301 redirects in the past for subdomains, but this case is a bit more of a puzzler.

What I want to do is 301 redirect www.example.com, example.com, anything.example.com etc. to a.b.example.com i.e. end up with the default url being a sub-subdomain rather than a subdomain.

The extra "." throws me, so I'd really appreciate any pointers!

jdMorgan

12:23 am on Jan 6, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The extra subdomain level hardly affects the code at all.

What have you tried?

Jim

Edwin

4:37 am on Jan 8, 2006 (gmt 0)

10+ Year Member



Actually, that gave me the clue I needed, thanks. Just got my escaping in the wrong place. Works now!