Web Hosting Talk







View Full Version : htaccess help needed


venomx
08-09-2006, 09:49 PM
Hoping someone here can help..

Right now I have a htaccess redirecting all my parked domains to one of my domains.
I would like to have it redirect them to http://www.some3rdparty.com/mydomain.com but have no idea how to get htaccess to input the domain.com part depending on which domain the user has went to.

EX: They goto http://www.123domain.com they get sent to http://www.some3rdparty.com/123domain.com
If they goto http://www.456domain.com they get sent to http://www.some3rdparty.com/456domain.com

Thanks for any help.

maxymizer
08-10-2006, 12:18 AM
RewriteEngine On
RewriteRule .* http://www.some3rdparty.com/%{HTTP_HOST}

That redirect all requests to some3rdparty.com/requested_domain.com

venomx
08-10-2006, 12:25 AM
Thanks that worked.

Any way to strip the www. part if they goto www.requested_domain.com