B
BobLaughland
Hi All,
I am trying to get my website to redirect all 404 errors to the
sitemap page, but I am having trouble.
The first thing I am doing is this,
<customErrors mode="On" defaultRedirect="~/en/Sitemap1/?id=72">
<error statusCode="404" redirect="~/en/Sitemap1/?id=72" />
</customErrors>
This works if I get the URL wrong and include an aspx extension, e.g.
http://mysite/garbagepage.aspx
But does not work if I do this,
http://mysite/garbagepage
I have tried changing the custom errors in IIS, but I am not exactly
sure what to add in there, I put /en/Sitemap1/?id=72 and that doesn't
work.
Not sure exactly how to explain this, but I am building on a CMS
system called EPiServer, so the URLs that I provide are translated
into a specific instance of a page template, so I cannot just put the
absolute path of the URL (hence the reason for the id=72 above).
Please help.
I am trying to get my website to redirect all 404 errors to the
sitemap page, but I am having trouble.
The first thing I am doing is this,
<customErrors mode="On" defaultRedirect="~/en/Sitemap1/?id=72">
<error statusCode="404" redirect="~/en/Sitemap1/?id=72" />
</customErrors>
This works if I get the URL wrong and include an aspx extension, e.g.
http://mysite/garbagepage.aspx
But does not work if I do this,
http://mysite/garbagepage
I have tried changing the custom errors in IIS, but I am not exactly
sure what to add in there, I put /en/Sitemap1/?id=72 and that doesn't
work.
Not sure exactly how to explain this, but I am building on a CMS
system called EPiServer, so the URLs that I provide are translated
into a specific instance of a page template, so I cannot just put the
absolute path of the URL (hence the reason for the id=72 above).
Please help.