Web Servers General Talk - Help with mod_rewrite domain handling rules

This is Interesting: Free IT Magazines  
Home > Archive > Web Servers General Talk > August 2005 > Help with mod_rewrite domain handling rules





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Help with mod_rewrite domain handling rules
starman7@hotmail.com

2005-08-28, 5:53 pm

I have several domains that reach one Apache server.

I'd like to redirect based on the hostname used to reach the site

So given domain1.com, domain2.com, and domain3.com

all reach domain.com,

domain1.com should get re-written to www.domain.com/domain1_stuff
domain2.com should get re-written to www.domain.com/domain2_stuff
domain3.com should get re-written to www.domain.com/domain3_stuff

And I would like to force the www. for all

Thanks!

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com