This forum has been moved here:
Helicon Tech Community Forum

ISAPI_Rewrite 3.0 (Forum Locked Forum Locked)
 Helicon Tech : ISAPI_Rewrite 3.0
Subject Topic: Multiple domains
Author
Message |
ClarkBirkelund
Groupie


Joined: 28 February 2009
Location: Denmark
Posts: 92
Posted: 17 July 2012 at 2:39am

Hi,

I've got 3 domain names:

www.site.dk
www.site.de
www.site.us

All binds on the same website in IIS7.

But

I would like to be able to redirect www.site.de to www.site.de/de/
I would like to be able to redirect www.site.us to www.site.us/us/
and www.site.dk should just point to www.site.dk

Is this possible? And if so, how?

Back to Top
 
HeliconA
Admin Group


Joined: 02 March 2012
Posts: 4142
Posted: 17 July 2012 at 5:08am

Hello,

Try using the following:

Code:
RewriteEngine on
RewriteBase /

RewriteCond %{HTTP:Host} ^www\.site\.(de|us)$
RewriteRule ^$ http://www.site.%1/%1 [NC,R=301,L]


I don't think you need anything to point site.dk to site.dk.

Regards
Andrew
Back to Top
 
ClarkBirkelund
Groupie


Joined: 28 February 2009
Location: Denmark
Posts: 92
Posted: 17 July 2012 at 9:16am

Works perfect thanks!
Back to Top
 

Sorry, you can NOT post a reply.
This forum has been locked by a forum administrator.

Printable version Printable version