Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

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
add comment

1 Answer 1

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. –  drummin Sep 19 '13 at 20:47
add comment

Your Answer

 
discard

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.