1

Unable to redirect a link using header in php, used the following code

header('Location: http://x.in/home/index.php');

Getting the following message in console

Reload the page to get source for:....

Muhammad Hassaan
  • 7,296
  • 6
  • 30
  • 50
Tijo John
  • 686
  • 1
  • 9
  • 20
  • 1
    uh, php error messages usually don't appear in the console, never heard of that before, they should just be displayed directly on the page. are you sure your looking the right place? turned on `error_reporting`? – Epodax May 27 '16 at 06:55
  • Is this after the page has started producing output? Header only works if performed before any html is output. – brianlmerritt May 27 '16 at 06:56
  • 1
    Possible duplicate of [How to fix "Headers already sent" error in PHP](http://stackoverflow.com/questions/8028957/how-to-fix-headers-already-sent-error-in-php) – brianlmerritt May 27 '16 at 06:57
  • Sorry that is a response in firebug net – Tijo John May 27 '16 at 06:57

0 Answers0