Forum Moderators: coopster

Message Too Old, No Replies

custom 404 error page using .htaccess please help

i need help with making a custom 404 error page using .htaccess

         

ivantis

4:39 am on Apr 13, 2008 (gmt 0)

10+ Year Member



i read the post by indiandomain ([webmasterworld.com ]) and tried using the code in my .htaccess file and made a corosponding 404.php script, but it doesn't work (i get an error message saying "Internal Server error because $uri is not recognized), and the variable $_SERVER['REQUEST_URI'] doesn't work either. can anyone help me?

ivantis

4:40 am on Apr 13, 2008 (gmt 0)

10+ Year Member



please.

jdMorgan

4:54 am on Apr 13, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You're asking about PHP variable, so the PHP forum would probably be a better place to get knowledgeable help.

Jim

[edited by: jdMorgan at 4:56 am (utc) on April 13, 2008]

ivantis

4:56 am on Apr 13, 2008 (gmt 0)

10+ Year Member



no, i tried all of it, but it says that $uri is unsupported, and putting it in the 404.php doesn't work either

jatar_k

1:08 pm on Apr 14, 2008 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



does the custom 404 actually work? does it get sent to the proper script?