Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

.htaccess Domain Alias Redirect

Status
Not open for further replies.

Faded

Programmer
Feb 6, 2002
78
CA
Hello All!

I am having some troubles redirecting traffic using .htaccess.

Basically, I have two domains, of which one is an alias for another, so any requests for or will end up at
So, using .htaccess, I am looking for a way to determine if users requested and redirect them to
I have unsuccessfully tried variations of the following:

RewriteEngine on
RewriteCond %{HTTP_HOST} !^ [NC]
RewriteRule ^/(.*) [L,R]

Any help is greatly appreciated.

Cheers, F4d3d
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top