Copied to clipboard

Flag this post as spam?

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

  • Jesper Flindt 5 posts 96 karma points
    Nov 09, 2021 @ 10:46
    Jesper Flindt

    Cannot redirect deleted PDF URL

    On an Umbraco Cloud project running Umbraco 7.12.5 I am using the paid version of the SEOChecker package.

    The case is:

    I have a PDF that has been deleted - and we have a lot of (printed) QR codes linking to that file.

    I therefore wish to add a redirect so the deleted PDF link links to a page.

    OLD URL:


    NEW URL:


    But the redirect is not working - I can redirect other pages fine but I cannot redirect "media file URLs".

    I have already been in contact with the devs of the SEOChecker package and checked everything and all appears good.

    Their suggestion is that the HTTPModule is not running as intended in the Umbraco installation - I've tried reaching out to Umbraco Cloud support but after a month they have replied that they cannot help with 3rd party package issues.

    Which brings me here...

    My question - has anyone here experienced the same issue either with or without the SEOChecker package and if so how did you solve it?



  • Marc Goodson 1718 posts 11411 karma points MVP 7x c-trib
    Nov 09, 2021 @ 22:57
    Marc Goodson

    Hi Jesper

    Could you add a redirect rewrite rule in the Web site's Web.Config file?

    Something like this?

                <rule name="PDF Redirection using map">
                    <match url=".*" />
                        <add input="{PDF Redirection:{REQUEST_URI}}" pattern="(.+)" />
                    <action type="Redirect" url="{C:1}" appendQueryString="false" />
                <rewriteMap name="PDF Redirection">
                    <add key="/assets/12345/FileOne.pdf" value="/media/FileOne.pdf" />
                    <add key="/assets/55555/FileTwo.pdf" value="/media/NewFileTwoName.pdf" />
                    <add key="/assets/22222/FileThree.pdf" value="/resources/FileThreeNewFileName.pdf" />

    I think that should still work on Umbraco Cloud.

    This rule should fire at the we server level before SEO Checker or Umbraco gets to handle the request...



Please Sign in or register to post replies

Write your reply to: