Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Let's say the user surfs to http://mysite.com/some-path and encounters error 500 which leads to a custom error page.

What is the best practice regarding the URL shown in the address bar while in the error page - should I leave http://mysite.com/some-path or should I change it to http://mysite.com/custom-error.aspx? Is there a good reason not to leave the URL as is?

share|improve this question

Definitely leave the URL as it as it is typed into the browser. That way search engines, bots, users, etc. will know that that particular URL is not a valid URL. If you were to redirect to another URL, it's possible that bots, etc. could still index the bad URL, which is not what you want.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.