Tuesday, 15 July 2014

php - Header redirection doesn't work in some browsers -


I am using this command to redirect to another page:

  Header ('location: \ dealer \ skuska \ layout.php');  

This works correctly in Chrome, but this is redirecting to Firefox:

  http://212.5.221.26:85/ Dealer / skuska / actions Why is this happening, and how can I fix it?   

You need to use the full path like this

  Header ('Location: http://example.com/dealer/skuska/layout.php'); Change  \  to  /  

, it will work in all browsers.


No comments:

Post a Comment