Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hello!
I've tried to redirect (301) from an old URL to a new one using this piece of code:
<add name="301Redirect_for_product" virtualUrl="^/products/bathroom/toothbrush/(.*)" rewriteUrlParameter="ExcludeFromClientQueryString" destinationUrl="/products/hygieen/toothbrus/$1" ignoreCase="true" />
(The above URL is a changed example)
However. It doesn't seem to work because what is left in the URL field is the old url it should redirect FROM. When I redirect the domain call it rewrites the domain name (from www to just http:///) - but not when I redirect the URL.
Any idea how I tackle this?
Try adding redirect="Application":
<add name="301Redirect_for_product" virtualUrl="^/products/bathroom/toothbrush/(.*)" rewriteUrlParameter="ExcludeFromClientQueryString" destinationUrl="/products/hygieen/toothbrus/$1" ignoreCase="true" redirect="Application"/>
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Redirect 301 in the UrlRewrite config. How?
Hello!
I've tried to redirect (301) from an old URL to a new one using this piece of code:
(The above URL is a changed example)
However. It doesn't seem to work because what is left in the URL field is the old url it should redirect FROM. When I redirect the domain call it rewrites the domain name (from www to just http:///) - but not when I redirect the URL.
Any idea how I tackle this?
Try adding redirect="Application":
is working on a reply...