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, I am having a few issues with my site www.metacompliance.com - there is no www. redirect in place and I am unsure of the code I need to do this? Can anyone help?
Hi Karen and welcome to our :)
You could try to do something like this.
<system.webServer> <rewrite> <rules> <rule name="Redirect non-www to www" enabled="true" stopProcessing="true"> <match url=".*" /> <conditions> <add input="{HTTP_HOST}" pattern="^domain.com$" /> </conditions> <action type="Redirect" url="http://www.domain.com/{R:0}"/> </rule> </rules> </rewrite> </system.webServer>
You may have to install Application Request Routing (ARR) 3.0 in IIS for that to work.
Hope this helps,
/Dennis
No ARR needed, just the IIS URL Rewrite plugin.
Imitation is the sincerest form of flattery, so thank you ;-)
https://our.umbraco.org/forum/using-umbraco-and-getting-started/79230-non-www-redirect-to-www#comment-253383
Take a look at this blog post I wrote. It should help you achieve what you need.
http://www.codeshare.co.uk/blog/how-to-create-url-rewrite-rules-in-umbraco/
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Hio do I create a www. redirect
Hi, I am having a few issues with my site www.metacompliance.com - there is no www. redirect in place and I am unsure of the code I need to do this? Can anyone help?
Hi Karen and welcome to our :)
You could try to do something like this.
You may have to install Application Request Routing (ARR) 3.0 in IIS for that to work.
Hope this helps,
/Dennis
No ARR needed, just the IIS URL Rewrite plugin.
Imitation is the sincerest form of flattery, so thank you ;-)
https://our.umbraco.org/forum/using-umbraco-and-getting-started/79230-non-www-redirect-to-www#comment-253383
Take a look at this blog post I wrote. It should help you achieve what you need.
http://www.codeshare.co.uk/blog/how-to-create-url-rewrite-rules-in-umbraco/
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.