Forum Moderators: phranque

Message Too Old, No Replies

How to set up subdomain redirection?

want sub.domain.com --> www.domain.com/sub

         

louponne

4:02 pm on Aug 17, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I have one domain that will have a number of subdomains in the form of sub.domain.com

I'd like these to be aliased to www.domain.com/sub/www/
In other words, the user continues to see sub.domain.com in their browser.

I've been able to create alias for domain.com/sub --> domain.com/sub/www but I can't figure out how to do it for subdomains. I'd like, if possible, to learn how to do this on an individual level, but also using a regular expression, such that any subdomain whould be aliased to its equivalent domain.com/sub/www/

I assume that this is possible without having to create a new virtual server in the apache server configuration for each one, right?

jdMorgan

5:03 pm on Aug 17, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



See Rewriting arbitrary subdomains to subdirectories [webmasterworld.com] (msg#6)

Jim

louponne

6:59 am on Aug 18, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Many thanks, Jim - I did a lot of searching WebmasterWorld and reading threads but didn't come across that one! :)