Jump to content

header("Location http://asdf.com"); not working in IE


karthikeyan_coder

Recommended Posts

PHP code is not parsed by the browser it is done by the server. The header function sends a header to the HTTP Server which in turns sends the request back to the browser.

You cannot code for separate browsers in PHP.

You should use the full url address  eg http://www.sitename.com not http://sitename.com

I have tested your code in IE7 and it works fine. Perhaps you have some option which blocks HTTP Header requests or something.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.