Jump to content

[SOLVED] Multiple header information in one script..


Shaun

Recommended Posts

Ok, so I want to do something like this

 

<?
header(”Status: 404 Not Found”);
header("location: http://addresshere.com");

?>

 

obviously this is going to cause problems with headers already being sent..

 

so how would I do something like this without having to rely on meta tags to redirect?

 

 

thanks, Shaun

your code should work. are you sending anything to the browser before the header() calls? is there ANYTHING before the code you posted?

 

if there is nothing before this, it maybe the problem is the back-double-quotes in the first header(). try changing it to this with regular double-quotes.

 

header("Status: 404 Not Found");

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.