404 Sitecore page redirect allows URL without extension

I am using Sitecore as my CMS solution. We recently decided to add the ability to redirect to our site for errors. In Sitecore, I created two content pages, one to handle server errors and the other to handle 404 errors. I have implemented a server bug with base sublevels without any code. On the other hand, the 404 page had a sub-tier that allows the link that was printed, which resulted in the 404 error. Then I added those pages to the web.config file (I edited the customErrors parameter to redirect to the server error page and 404 errors to redirect to a 404 error page. I also replaced the NoItems settings to point to my 404 error page.

Also, I modified the HTTP 404 error to point to my new 404 error page in IIS (5.1). And so my changes worked; I was able to redirect many errors to these new pages. However, I found that by forcing IIS to redirect to my aspx page for 404 errors, my website now redirects the URL redirect without redirecting. (Previosly, if I typed in http: // mywebsite / foo , I get a 404 error. Now that I have done this, I will return to foo.aspx page)

  • Can anyone explain this behavior? Any plausible explanation will allow me to sleep at night.

  • Should I go ahead and use this as a workaround for a non-redirect url redirect? What could be wrong with this decision?

+1


a source to share


1 answer


Look for this in the web.config file under the linkManager section:

addAspxExtension

      



Is it set to true? If so, then this is the sitecore parameter that you will need to change.

+4


a source







All Articles