Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PHP Header(location: ... giving a 302 responce and I need a 301 1

Status
Not open for further replies.
Jun 7, 2005
2
US
I am trying to get a 301 header and keep getting a 302. Can anybody help?

header("HTTP/1.1 301 Moved Permanently");
header("Location: ['HTTP_HOST']}/library/{$redirect[0]['full_safe_name']}");
header("Connection: close");
 
Yes we are using IIS 5 on Windows 2000 server.
We have php 5.0.3 installed.
 
It's probably an IIS problem. IIS often supercedes web-application-set HTTP headers to make sure all output conforms to Microsoft's unique interpretation of some HTTP RFCs.

I recommend you do some digging into "no parse header" CGIs with IIS.


Want the best answers? Ask the best questions!

TANSTAAFL!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top