karthikeyan_coder Posted November 18, 2006 Share Posted November 18, 2006 Hello, here is the code..$url is some urls... $red = "http://".$url; header("Location: $red");This is redirecting well in firefox.. but not in IE7.. may be in IE6 too...Help me. Quote Link to comment https://forums.phpfreaks.com/topic/27667-headerlocation-httpasdfcom-not-working-in-ie/ Share on other sites More sharing options...
karthikeyan_coder Posted November 18, 2006 Author Share Posted November 18, 2006 how can i code separately for IE browser? Quote Link to comment https://forums.phpfreaks.com/topic/27667-headerlocation-httpasdfcom-not-working-in-ie/#findComment-126572 Share on other sites More sharing options...
BlueOrbits Posted November 18, 2006 Share Posted November 18, 2006 http://www.php.net/header Quote Link to comment https://forums.phpfreaks.com/topic/27667-headerlocation-httpasdfcom-not-working-in-ie/#findComment-126580 Share on other sites More sharing options...
wildteen88 Posted November 18, 2006 Share Posted November 18, 2006 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.comI have tested your code in IE7 and it works fine. Perhaps you have some option which blocks HTTP Header requests or something. Quote Link to comment https://forums.phpfreaks.com/topic/27667-headerlocation-httpasdfcom-not-working-in-ie/#findComment-126591 Share on other sites More sharing options...
heckenschutze Posted November 18, 2006 Share Posted November 18, 2006 www. is not a top-level domain, it is infact a sub-domain provided for old habbits + globalisation.So http://sitename.com/ is more of a 'full address' than http://www.sitename.com/ :) Quote Link to comment https://forums.phpfreaks.com/topic/27667-headerlocation-httpasdfcom-not-working-in-ie/#findComment-126611 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.