Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Karen Mc naught 1 post 71 karma points
    Aug 15, 2016 @ 09:26
    Karen Mc naught
    0

    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?

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Aug 15, 2016 @ 09:30
    Dennis Aaen
    0

    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

  • Sebastiaan Janssen 5061 posts 15544 karma points MVP admin hq
    Aug 15, 2016 @ 18:56
    Sebastiaan Janssen
    0

    No ARR needed, just the IIS URL Rewrite plugin.

  • Nicholas Westby 2054 posts 7104 karma points c-trib
    Aug 15, 2016 @ 19:40
  • Paul Seal 524 posts 2890 karma points MVP 7x c-trib
    Aug 19, 2016 @ 16:21
    Paul Seal
    0

    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/

  • 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.

Please Sign in or register to post replies