rewrite map using multiple languages for different domains

ISAPI_Rewrite is Apache mod_rewrite compatible URL rewriter for Microsoft IIS
User avatar
Posts: 5
Joined: 08 Oct 2012, 10:58

rewrite map using multiple languages for different domains

16 Apr 2013, 12:13

Hi,

I have a couple of domainnames pointing to one website. Every domainname is used for a specific country.
There is logic available to show the website in the default language for that country. So our .de site will be default in german, our .fr site in French and so on.

I created an aspx file that gets an id in the query string. This id wil load the specific data in the page.
F.e. I have : www.oursite.uk/mypage.aspx?id=1 which will show content about let's say soccer, id=2 would show content about swimming

I would like to use a rewritemap for it like this:
soccer 1
swimming 2

so this would allow me to rewrite it to :
www.oursite.uk/soccer and www.oursite.uk/swimming

My question is :
Is it possible to do this for every site in its default language, while having only one website instance ?

So for our dutch site I want to rewrite this as : www.onzesite.nl/voetbal en www.onzesite.nl/zwemmen
for our german site as : www.unsereseite.de/fussbal and www.unsereseite.de/schwimmen etc etc



Thanks a lot in advance
David

User avatar
Posts: 1264
Joined: 07 Mar 2012, 10:16

Re: rewrite map using multiple languages for different domai

16 Apr 2013, 19:25

Hellom

Do you mean you want to use mapfile as in following:

Code: Select all
soccer 1
swimming 2
voetbal  1
zwemmen  2
fussbal  1
schwimmen  2

OR
Code: Select all
soccer 11
swimming 12
voetbal  13
zwemmen  14
fussbal  15
schwimmen  16


You can certainly do that.
But I'm not sure what you mean by "while having only one website instance"

Regards
Andrew

User avatar
Posts: 5
Joined: 08 Oct 2012, 10:58

Re: rewrite map using multiple languages for different domai

19 Apr 2013, 05:45

Hi Andrew,

thanks for your response.

Your first mapfile is the direction I mean:
soccer 1
swimmin 2
voetbal 1
zwemmen 2
etc

In the DNS multiple domainnames lead to our ip-address.
In IIS I do not use a hostheader, they are handled by the default site, so all domainnames use the same physical site.
That means I have only one instance of httpd.ini

Return to ISAPI_Rewrite 3.0

Who is online

Users browsing this forum: No registered users and 21 guests