Copied to clipboard

Flag this post as spam?

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


This forum does not allow new topics to be created, please use the v2 forum from now on.

  • Emil Rasmussen 67 posts 91 karma points
    Feb 24, 2011 @ 13:14
    Emil Rasmussen
    0

    Query strings without a value doesn't seem to work?

    We are using 301 URL Tracker to map the URLs from a old site, to the new URLs in Umbraco. The old URLs are in this format: index.aspx?contact

    But that doesn't work with the 301 URL Tracker.

    If I add an equal sign ("=") after "contact" so the complete path looks like this: index.aspx?contact= then it works (added both on the request and in as the oldUrl).

    Is this a bug in the 301 URL Tracker, or are I doing anything wrong?

    Best regards
    Emil

     

  • Stefan Kip 1606 posts 4098 karma points c-trib
    Feb 24, 2011 @ 13:21
    Stefan Kip
    0

    I'll have to do some testing to find out what's happening, hang in there ;-) (will take a few days before I'm able to do so)

  • Emil Rasmussen 67 posts 91 karma points
    Feb 24, 2011 @ 13:30
    Emil Rasmussen
    0

    OK. Looking forward to see what you come up with :-)

  • Emil Rasmussen 67 posts 91 karma points
    Mar 03, 2011 @ 13:23
    Emil Rasmussen
    0

    If others experience the same problem, a modifed version of this rewrite rule can be used as a work around (notice the extra = at the end of the destinationUrl):

    <add name="phptoaspx"
       virtualUrl="^~/(.*).php(.*)"
       rewriteUrlParameter="IncludeQueryStringForRewrite"
       destinationUrl="/$1.aspx$2="
       ignoreCase="true" />

    Credits in this Stack Overflow question:

    http://stackoverflow.com/questions/4955940/how-to-get-umbraco-to-handle-requests-for-non-aspx-files-iis-integrated-pipelin

  • 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