Copied to clipboard

Flag this post as spam?

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


  • jonok 297 posts 658 karma points
    Sep 01, 2009 @ 16:21
    jonok
    0

    Redirecting classic ASP pages with UrlRewriting.config

    I have created an Umbraco site that replaces an old classic ASP website, and when the site goes live I want to redirect all of the old ASP pages to the home page of the Umbraco site. I understand that this can be done using the UrlRewriting.config, but when I add an entry to the config file it doesn't change anything and I still get a page not found error. I am testing it with a single asp page url (index.asp) using the following config:

        <add name="asp-redirects" virtualUrl="^/index.asp" 
    redirect="Application" 
    redirectMode="Permanent"
    destinationUrl="~/" ignoreCase="true" />

    On another note, I have also been trying to get my sitemap.aspx page to load with the url 'sitemap.xml', but that isn't working either:

        <add name="sitemap"
    virtualUrl="^~/sitemap.xml"
    destinationUrl="~/sitemap.aspx"
    ignoreCase="true" />

    Do I need to make any changes to the IIS settings or am I doing something wrong?

  • Ron Brouwer 273 posts 768 karma points
    Sep 01, 2009 @ 18:22
    Ron Brouwer
    0

    it looks like you don't have the wildcard-entry in your IIS.

    The redirect only works when those files are proccessed by .net

    Ron

  • Ron Brouwer 273 posts 768 karma points
    Sep 01, 2009 @ 18:23
  • 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