Copied to clipboard

Flag this post as spam?

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


  • Murray Roke 503 posts 966 karma points c-trib
    May 28, 2009 @ 01:25
    Murray Roke
    0

    urlrewriting .net trailing slash & lowercase

    Hi everyone
    I'd like to implement these rewrite rules (particularly the top 2) in an umbraco site.

    http://ruslany.net/2009/04/10-url-rewriting-tips-and-tricks/

    I've tried and failed, and the documentation doesn't seem to be very comprehensive on the http://www.urlrewriting.net/160/en/documentation.html website (and the forum is in german)

    can anyone give me some pointers for these tasks.

    Also importantly I need to redirect to the trailing slash version of the url so that my reserved paths will work correctly.... BUT I don't want every umbraco request to have a 301 redirect from the non trailing to the trailing slash version.

    Cheers.
    Murray.

  • Richard 146 posts 168 karma points
    May 28, 2009 @ 17:16
    Richard
    0

    We use the following to on live sites to stop the debug show parameter returning debugging info

    [code]



    [/code]

    So I would expect the following to remove the trailing slash

    [code]

    virtualUrl="^(.*)/$"
    rewriteUrlParameter="IncludeQueryStringForRewrite"
    redirect="Application"
    destinationUrl="~$1"
    ignoreCase="true" />

    [/code]

    I am not sure what the rewriteUrlParameter parameter should be. And if you are handling querystring parameters you will need the regular expression modifying to accept these.

Please Sign in or register to post replies

Write your reply to:

Draft