• Hi,
    I have the site https://www.btl.com which is running on IIS
    When someone types in “btl.com” they get redirected to a 404 page, where is trying to find the page https://www.btl.com/www.btl.com

    I’m guessing that my web.config file needs some tweaking am I correct?
    It currently has the line
    “<httpRedirect enabled=”false” destination=”https://btl.com&#8221; childOnly=”true” httpResponseStatus=”Permanent” />”

    when I set it to true the browsers can’t get to the btl.com site..

    Can someone help please?

    thanks in advance

    Rich

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter richlondon

    (@richlondon)

    Can anyone help me with this please?

    thanks

    Thread Starter richlondon

    (@richlondon)

    solved it with this rule..

    <rule name=”Redirect to WWW” stopProcessing=”true”>
    <match url=”.*” />
    <conditions>
    <add input=”{HTTP_HOST}” pattern=”^btl.com$” />
    </conditions>
    <action type=”Redirect” url=”https://www.btl.com/{R:0}”
    redirectType=”Permanent” />
    </rule>

    placing this as the very first rule.

    Try resetting your custom permalinks back to the default setting via Settings -> Permalinks. If this works, then review Using_Permalinks before setting a custom permalink structure back up again.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘no www address redirect issue with IIS on wordpress’ is closed to new replies.