Custom Error Pages

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Custom Error Pages

Postby naughtydude » 09. July 2006 07:42

Hello...im having a bit of a problem with the custom error pages on apache...what im trying to do is to create my own error pages like 404, 403... so i added a line in httpd.conf containing ErrorDocument 404 http://www.mysite.com/error.php?error=404 but it doesnt seem to change the 404 default page...so i change the lines in httpd-multilang-errordoc.conf but still doesnt change anything...so why not use .htaccess right? hmm...well on .htaccess access instead of staying on the same page they requested, it redirects them into the actual customized page. With .htaccess, like for example i was trying to access http://www.mysite.com/hello.php but hello.php does not exist, it redirects me to http://www.mysite.com/404.php . I dont like that...i want them to stay on the same page they were trying to access, like for example im trying to access http://www.mysite.com/hello.php but hello.php does not exist so i want to stay on http://www.mysite.com/hello.php and showing the custom 404 error page i created. does it make sense? i hope so...thanks guys
naughtydude
 
Posts: 2
Joined: 09. July 2006 07:22

Postby naughtydude » 09. July 2006 08:42

ok i restarted apache and it worked, but it redirected....
naughtydude
 
Posts: 2
Joined: 09. July 2006 07:22


Return to XAMPP for Windows

Who is online

Users browsing this forum: dogmatic and 35 guests