Forum Moderators: phranque

Message Too Old, No Replies

Redirection of sub-domains

         

kangated

5:23 am on Jan 18, 2005 (gmt 0)

10+ Year Member



HI there,
Someon in the "cloaking topic" suggested I post here as they thought it may be a job for mod_rewrite.
And please, excuse me I have no idea what mod_rewrite is or how to change it. So here goes :

I am trying to put something back into the sport I love. Clubs are struggling for funds and I am offering them a vehicle to attract sponsorship dollars on their own named website without the cost of registering a domain and taking out their own hosting etc.
I have a server setup which allows me to support unlimited sub-domains so the concept is to offer them a template website, weekly result publishing and their own sub-domian name relevant to their location.
Example townsville.mysport.net.au whilst www.mysport.net.au is the registered domain I hold.

However I would like to hide the redirect string to the sub-directory in the browser.

For example
www.mydsport.net.au/townsville/index.html
would look much better and more professional as
townsville.mysport.net.au

Currently the webserver shows exactly what the redirection says it should which means the "clubs" won't see their sub-domain address but my domain name, sub-director and index.htm url.

Any suggested script or suggested solutions much appreciated

Thanks

kangated

jdMorgan

1:58 pm on Jan 18, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



kangated,

Welcome to WebmasterWorld!

mod_rewrite is Apache's URL-rewriting module, and probably *can* help with your problem, subject only to server restrictions outside mod_rewrite itself. However, it's also a potentially-complex subject, so you'll need to study up on it a bit. There are some references in our forum charter [webmasterworld.com] to help you get started. Your chance of success will increase dramatically if you are conversant with the terminology, capabilities, and underyling functionality of mod_rewrite before starting.

Jim