Copied to clipboard

Flag this post as spam?

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


  • Evan Harper 15 posts 37 karma points
    Apr 12, 2012 @ 21:43
    Evan Harper
    0

    UrlRewritingNet.UrlRewrite won't let me rewrite /umbraco/dialogs/preview.aspx

    I'm trying to override normal preview functionality, but without hacking the core or doing anything outright barbarous. As a result I'm trying to rewrite all requests to

    /umbraco/dialogs/preview.aspx?whatever
    

    so they'll end up at

    /IveySuperPreview/IveySuperPreview.aspx?whatever
    

    It seems that UrlRewritingNet only grabs on to URL's that don't exist as real pages, though. I can rewrite, for example, /umbraco/dialogs/preview_test.aspx – but if I try it on the actual preview.aspx, nothing happens.

    Am I correct that this is what's going on? Is there a workaround?

  • Evan Harper 15 posts 37 karma points
    Apr 16, 2012 @ 16:09
    Evan Harper
    0

    ...and the answer was for me to RTFM:

    Attributes for <urlrewritingnet />

    rewriteOnlyVirtualUrls

         true, false (Standard: true)

         Prevents rewriting for real existing files on the server if true.

  • 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