Copied to clipboard

Flag this post as spam?

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


  • Steve Wilkinson 132 posts 211 karma points
    Aug 08, 2014 @ 10:19
    Steve Wilkinson
    0

    404 issues /rubbish/ displays 404 /rubbish.html doesn't

    I've followed the instructions http://our.umbraco.org/wiki/install-and-setup/configuring-404-pages for setting up the 404 pages and while it works for /invalid-url/ if you type in invalid-url.html it doesn't redirect to the 404.

  • Allan Molsen Larsen 22 posts 192 karma points
    Aug 09, 2014 @ 21:55
    Allan Molsen Larsen
    1

    Hi Steve,

    You can try adding a url-rewrite (in config/UrlRewriting.config):

    <add name="html-rewrite"
        ignoreCase="true"
        rewriteUrlParameter="IncludeQueryStringForRewrite"
        redirect="None"
        virtualUrl="(.+)\.html?"
        destinationUrl="$1.aspx" />
    

    This will rewrite both htm and html.

    /Allan

  • Steve Wilkinson 132 posts 211 karma points
    Aug 11, 2014 @ 08:22
    Steve Wilkinson
    0

    Thanks very much Allan, worked perfectly :-)

  • Allan Molsen Larsen 22 posts 192 karma points
    Aug 11, 2014 @ 09:03
    Allan Molsen Larsen
    1

    Hi Steve,

    Glad it worked out for you. :-)

    Your question actually improved the solution I'm working on too. :-)

    Cheers,
    Allan

  • 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