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
Hi everyone
I have one Umbraco with multiple sites in multiple languages. One of the UrlRewriting rules i have is
<add name="ProductUK" virtualUrl="^~/uk/products/(.*)/(.*)" destinationUrl="/uk/products/product?id=$1" rewriteUrlParameter="ExcludeFromClientQueryString" ignoreCase="true" />
Similar pattern for other countries.
I am reading up on IIS Rewrite (not sure if i need to convert it from Umbraco to IIS but thought to give it a go). I produced something like
<rules>
<match url="/uk/products/product?id=$1" /> <action type="Redirect" url="/uk/products/(.*)/(.*)" appendQueryString="false" /> </rule> </rules> </rewrite>
but this doesnt work. I do have IIS rewrite with canonical links so not sure if theres some issue somewhere but if someone can help me convert the above working rule from Umbraco to is equivalent IIS version that could help narrow down the problem?
Appreciate any ideas.
Many thanks
The better way is to use IIS rewrite module https://www.iis.net/downloads/microsoft/url-rewrite
Hi
That's what I'm using but can't figure out the correct way to convert from Umbraco URL writer to IIS?
Ta
Do you have access to IIS? It has a rewrite builder that can be helpful: https://docs.microsoft.com/en-us/iis/extensions/url-rewrite-module/creating-rewrite-rules-for-the-url-rewrite-module
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Help converting Umbraco redirect to IIS
Hi everyone
I have one Umbraco with multiple sites in multiple languages. One of the UrlRewriting rules i have is
Similar pattern for other countries.
I am reading up on IIS Rewrite (not sure if i need to convert it from Umbraco to IIS but thought to give it a go). I produced something like
but this doesnt work. I do have IIS rewrite with canonical links so not sure if theres some issue somewhere but if someone can help me convert the above working rule from Umbraco to is equivalent IIS version that could help narrow down the problem?
Appreciate any ideas.
Many thanks
The better way is to use IIS rewrite module https://www.iis.net/downloads/microsoft/url-rewrite
Hi
That's what I'm using but can't figure out the correct way to convert from Umbraco URL writer to IIS?
Ta
Do you have access to IIS? It has a rewrite builder that can be helpful: https://docs.microsoft.com/en-us/iis/extensions/url-rewrite-module/creating-rewrite-rules-for-the-url-rewrite-module
is working on a reply...