You mean it redirects to the string in your answer, that's odd, and everything is ok if you just hit "/da/forside/" from a browser?
Seems like we got the virtualUrl right, but the redirect is failing in some way.
How does the response look when virtualUrl="~/$" do you get the expected 301 redirect from the server, and does it really redirect to "/da/forside/da/forside..."?
Urlrewriting.net creating rule for "/"
Hey there i wanna create a rule that hits "/" and redirects to "/da/forside" and so far i have a rule that looks like this:
But this rule activated when ever something is matching "/" which is every page :)
Anyone got a good idea?
As far as I remember UrlRewrite.net uses regex'es for matching, you could probably get away with just adding a line end character search:
Regards Jesper Hauge
Your right it uses regex. When i do that it still hits it like this :
"/da/forside/da/forside/da/forside/da/forside/da/forside/da/forside/da/forside/da/forside/da/forside/da/forside/da/forside/da/forside/da/forside/da/forside/da/forside/da/forside/"
So its still just hitting it all.
Ive also tried with virtualUrl="~/^", it dosnt break but isnt hit either.
You mean it redirects to the string in your answer, that's odd, and everything is ok if you just hit "/da/forside/" from a browser?
Seems like we got the virtualUrl right, but the redirect is failing in some way.
How does the response look when
virtualUrl="~/$"
do you get the expected 301 redirect from the server, and does it really redirect to "/da/forside/da/forside..."?It actually breaks everything.
Because every call goes like this, i hit http://domain.com.
redirects to /da/forside/
Redirects to /da/forside~/da/forside
Redirects to /da/forside~/da/forside~/da/forside
And so it continues.
I fixed it with a mix of our tries :)
is working on a reply...