Copied to clipboard

Flag this post as spam?

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


  • Jeavon Leopold 3074 posts 13632 karma points MVP 11x admin c-trib
    Nov 25, 2010 @ 12:50
    Jeavon Leopold
    0

    Media Document URLs

    Hi,

    We have a project where we want the pdf’s to appear to appear as if they are within the folder of the page for SEO value, e.g. www.umbraco.org/about-us/this-is-a-pdf.pdf

    Does anyone know how this could be done? 

    Thanks,

    Jeavon

  • Matt Brailsford 4125 posts 22223 karma points MVP 9x c-trib
    Nov 25, 2010 @ 13:37
    Matt Brailsford
    0

    Hi Jeavon,

    Sounds like a job for either URL rewriting, or a custom Umbraco 404 Handler.

    For URL Rrewriting though, I'd imagin you'd have to get .NET to handle all files. Not sure on the actual rewrite rule, but the documentation for the built in rewriter is here:

    http://www.urlrewriting.net/160/en/documentation.html

    And you can find a little info on 404 handlers here:

    http://our.umbraco.org/wiki/how-tos/how-to-implement-your-own-404-handler

    Matt

     

  • Jeavon Leopold 3074 posts 13632 karma points MVP 11x admin c-trib
    Nov 25, 2010 @ 13:44
    Jeavon Leopold
    0

    Hi Matt,

    I was beginning to think this might be the case. I think we might develop this as a package as it seems it would be useful. It almost could function like umbracoInternalRedirectId but use a media picker instead of a content picker.

    Thanks,

    Jeavon

  • Matt Brailsford 4125 posts 22223 karma points MVP 9x c-trib
    Nov 25, 2010 @ 13:54
    Matt Brailsford
    0

    Yea,

    Maybe add a property to the "File" media type of "myUrlAlias" or something (allow comma seperated?) then create a 404 handler which looks up the files based on that property? Job done! =)

    Could make for an interesting package. Give it a go, what's the worse that could happen? =)

    Matt

Please Sign in or register to post replies

Write your reply to:

Draft