Copied to clipboard

Flag this post as spam?

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

  • Laurence Gillian 595 posts 1212 karma points
    Aug 08, 2016 @ 15:26
    Laurence Gillian

    IIS URL Rewrite - For Missing Pages

    I'd like to redirect any missing pages to a new URL.

    Use case:

    Folder contains Products. When a product is no longer sold, we want to redirect traffic to the main Category page, so the visitor will see the wonderful new products.



    404, redirect to:


    My rule looks like:

    <rule name="Missing product stopProcessing="true">
        <match url="^product/(.*)" />
        <conditions logicalGrouping="MatchAll">
           // rule to match missing Umbraco Nodes.
        <action type="Redirect" 
                appendQueryString="true" />

    This currently just redirects everything! Missing and Present pages!

    Any help much appreciated :-)


  • Nik 1273 posts 5350 karma points MVP 3x c-trib
    Aug 08, 2016 @ 15:35

    Hi Laurence,

    Have you considered using 301 Redirect which is an Umbraco package (I'm afraid I don't have the plugin link to hand)?

    Alternatively, you might want to use a URL Provider and Content handler combination to write something:

    Not sure if either of those will do your job though.

Please Sign in or register to post replies

Write your reply to: