Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I've followed the instructions http://our.umbraco.org/wiki/install-and-setup/configuring-404-pages for setting up the 404 pages and while it works for /invalid-url/ if you type in invalid-url.html it doesn't redirect to the 404.
Hi Steve,
You can try adding a url-rewrite (in config/UrlRewriting.config):
<add name="html-rewrite" ignoreCase="true" rewriteUrlParameter="IncludeQueryStringForRewrite" redirect="None" virtualUrl="(.+)\.html?" destinationUrl="$1.aspx" />
This will rewrite both htm and html.
/Allan
Thanks very much Allan, worked perfectly :-)
Glad it worked out for you. :-)
Your question actually improved the solution I'm working on too. :-)
Cheers, Allan
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.
Continue discussion
404 issues /rubbish/ displays 404 /rubbish.html doesn't
I've followed the instructions http://our.umbraco.org/wiki/install-and-setup/configuring-404-pages for setting up the 404 pages and while it works for /invalid-url/ if you type in invalid-url.html it doesn't redirect to the 404.
Hi Steve,
You can try adding a url-rewrite (in config/UrlRewriting.config):
This will rewrite both htm and html.
/Allan
Thanks very much Allan, worked perfectly :-)
Hi Steve,
Glad it worked out for you. :-)
Your question actually improved the solution I'm working on too. :-)
Cheers,
Allan
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.