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.

  • Kalle Ekstrand 181 posts 259 karma points c-trib
    Mar 29, 2011 @ 12:52
    Kalle Ekstrand
    0

    301 not working, just get a blank page

    I have tried to install the 301 url tracker to redirect my old site with .asp files to Umbraco pages.

    But all I get is blank pages:
    http://www.automatsvarvning.net/cnc-svarvning.asp

    Should be

    http://www.automatsvarvning.net/cnc-svarvning

    What am I doing wrong?

    Did some reading on this blog, but still cant get it to work:

    http://amdonnelly.blogspot.com/2011/02/301-redirects-for-html-files-in-umbraco.html

  • Kalle Ekstrand 181 posts 259 karma points c-trib
    Mar 29, 2011 @ 13:38
    Kalle Ekstrand
    0

    I think I got it to work. But do you really have to url-rewrite the .asp to a .aspx first?

    I added the following to urlrewrite.config.

    <add name="ASP redirect" 
    virtualUrl="^~/(.*).asp"
    rewriteUrlParameter="ExcludeFromClientQueryString" 
    destinationUrl="/redirects/$1.aspx" 
    ignoreCase="true" />

    And then i map the /redirects/filename.aspx (originally /filename.asp before rewriting) to the right node in Umbraco.

  • Stefan Kip 1606 posts 4098 karma points c-trib
    Mar 29, 2011 @ 14:30
    Stefan Kip
    0

    Yes that's the only solution I can offer.

  • Kalle Ekstrand 181 posts 259 karma points c-trib
    Sep 22, 2011 @ 11:16
    Kalle Ekstrand
    0

    Just wrote a blog-post on how we do it here: http://blog.toxic.se/blog/2011/september/using-301-url-tracker/

  • 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