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:
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?
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
http://our.umbraco.org/wiki/install-and-setup/setting-up-umbraco-for-friendly-urls
is working on a reply...
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.