[thelist] [php] Redirect causing error 500

Joshua Olson joshua at waetech.com
Wed Feb 18 12:20:54 CST 2004


Hi Gang,

I'm trying to set up a simple 301 redirect using PHP and it's causing a 500
error:

<?
  header("HTTP/1.1 301 Moved Permanently");
  header("Location: http://www.domain.com/");
  exit();
?>

After googling, I can honestly say I believe the above should work.

But instead, I'm seeing the following:

"
Internal Server Error
The server encountered an internal error or misconfiguration and was unable
to complete your request.

Please contact the server administrator, webmaster at domain.com and inform
them of the time the error occurred, and anything you might have done that
may have caused the error.

More information about this error may be available in the server error log.

----------------------------------------------------------------------------
----

Apache/1.3.26 Server at www.domain.com Port 80
"

Thoughts?  Any help would be greatly appreciated.  Thanks.

<><><><><><><><><><>
Joshua Olson
Web Application Engineer
WAE Tech Inc.
http://www.waetech.com/service_areas/
706.210.0168




More information about the thelist mailing list