This is a discussion on rewrite multiple domains to one within the Apache Web Server forums, part of the Web Server and Related Forums category; I'm not sure of a good way to ask the question that I would like answered, so instead I'...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
I'm not sure of a good way to ask the question that I would like
answered, so instead I'll try to give an example of what I'd like to do. Imagine I own 3 domain names, one for each product that I sell. http://product1.com http://product2.com http://product3.com Within these domains I also have subdomains for each product, relating to it's use. http://sports.product1.com http://industry.product1.com http://games.product2.com http://blahblahblah.product2.com http://names.product3.com etc. What I would like to know is, is it possible with mod_rewrite to have all of these urls rewritten to one domain? IOW, the first example would become something like http://www.diffhost.com/product1/sports or http://www.diffhost.com?host=product1&subdomain=sports while the second example would become http://www.diffhost.com/product1/industry or http://www.diffhost.com?host=product...omain=industry the third would become http://www.diffhost.com/product2/games or http://www.diffhost.com?host=product2&subdomain=games etc.? I hope I've explained this well enough. Let me know if I haven't. If anyone knows if this is possible, I'd love to hear it. Thanks |
|
|||
|
On 15 May 2006 08:20:02 -0700, "unumism" <lewdog23@hotmail.com>
opined: > Yes, it's our own server/s and I have full access to change > anything I want. > RedirectMatch is the simplest method. In the <directory> RedirectMatch (.*) http://domain.tld -- Displayed Email Address is a SPAM TRAP Our DNSRBL - Eliminate Spam: http://www.TQMcube.com Multi-RBL Check: http://www.TQMcube.com/rblcheck.php The Dirty Dozen Spammiest Ranges: http://tqmcube.com/dirty12.php |