简体   繁体   中英

Canonical URL Rewrite for multiple domain extensions in IIS7

I'd like to achieve the following:

I have a website that hosts multiple languages. For each language there is a unique domain.

domain.eu --> English
domain.nl --> Dutch
domain.at --> German

I want to write an URL Rewrite action that redirects as follows:

www.domain.eu --> domain.eu
www.domain.nl --> domain.nl
www.domain.at --> domain.at

Can I do this in one rewrite rule inside IIS?

Thanks! Daniel

You can use either the standard URL rewrite tool inside IIS or extend the standard URL rewrite tool with this extension: http://www.iis.net/download/URLRewrite

We used it to redirect requests of non-www domains to www-domains and I am sure your case can be solved using this tool as well.

只需执行301重定向(通常您可以在cPanel中执行此操作)。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM