Monday, September 17, 2012

REQUEST_URI on ErrorDocument redirection issues

I just realized that in order for $_SERVER['REQUEST_URI'] to work on PHP properly when redirecting through .htaccess on an ErrorDocument 404 redirect, it needs to be a relative position (meaning, not containing http://www.example.com/notfound.php but just /notfound.php)

It took me about 2 hours to figure it out and I would still be swamped if I didn't find this post!

ALL HAIL TO ATLI

No comments:

Post a Comment