Rewriting to same domain

197 views
Skip to first unread message

Paul van Blokland

unread,
Mar 7, 2013, 6:28:46 AM3/7/13
to urlrewr...@googlegroups.com
Hi,

I have problem rewriter an url.

What i want to achieve is redirect www.mydomain.co.uk > www.mydomain.co.uk/?lang=EN

I tried the example below but this will create and endless loop

<add name="301ReDirect_For_Domain2"
               redirectMode="Temporary"
               redirect="Domain"
               ignoreCase="true" rewriteUrlParameter="IncludeQueryStringForRewrite"
    virtualUrl="http://www.mydomain.co.uk/"
    destinationUrl="http:/www.mydomain.co.uk/?lang=EN" />


Any thoughts?

Lee Lovell

unread,
Aug 7, 2013, 4:08:47 AM8/7/13
to urlrewr...@googlegroups.com
On the virtual URL add a $ to the end to say exact match.
Reply all
Reply to author
Forward
0 new messages