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

This question may seem a bit "childish" but I was wondering what a browser would read first if a 301 redirect is implemented.

So if a 301 is implemented on an ASP page (script) would the browser read that first or would a 301 on the server-end (Linux server) load first?

share|improve this question
up vote 1 down vote accepted

With a server side language, no matter what else you put on the page, the code will execute before it is ever rendered in the browser.

So, no, the browser will never see the rest of the page.

share|improve this answer
Thanks! You were right I tested in a live environment. – ZacNespral21 Sep 19 '13 at 18:51
No problem. Glad to help. – StephenCollins Sep 19 '13 at 20:47

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.