PDA

View Full Version : 404 Page


wierdo124
06-12-2010, 01:55 AM
Hey guys.

Trying to create a custom 404 page. I was using a mod called 404 Area, but i came to the conclusion it sucked, so i'm making my own.

Problem is, i have a 404.php, i have an .htaccess that points to it, but still no dice :(

What's the trick with vB? I'm using vbulletin 4.

Rafa-el
06-12-2010, 02:31 AM
What are you trying to do? I think that you only have to add this line in the .htaccess file

ErrorDocument 404 /myerrorpage.php

And if you're planning to use that page integrated with vB4 that's other history ;)

wierdo124
06-12-2010, 02:37 AM
What are you trying to do? I think that you only have to add this line in the .htaccess file

ErrorDocument 404 /myerrorpage.php

And if you're planning to use that page integrated with vB4 that's other history ;)

I have that. And what do you mean..? there's nothing integrated with vb4, on Chrome i just get a Chrome error.

Rafa-el
06-12-2010, 01:29 PM
I have that. And what do you mean..? there's nothing integrated with vb4, on Chrome i just get a Chrome error.

so what's the problem???

pant
06-12-2010, 07:45 PM
This is our 404 :D

http://the-sps.org/404.shtml

ChopSuey
06-12-2010, 07:54 PM
Check mine out

http://forum.vbdiscussions.com/wierdo124lookhere-&icanputanythingiwantahaha

It works :D

pant
06-13-2010, 10:26 AM
Ours is better, Maddie McCann trumps your software babble :D

wierdo124
06-13-2010, 06:11 PM
so what's the problem???

That i want to point to a specific custom 404 page..

How did you guys do that?

pant
06-13-2010, 06:43 PM
I have two files in the public folder.

one called 404.stml
one called 404image.jpg

The contents of the .shtml is

Rename the 404 with a .shtml extention and if you want also an image that you name the same as the jpg above and upload them to your public folder. You can then go to yourfoum.com/404.shtml and see if it works. If that works great, all you need to do then is play about with the shtml file to get what you want :)

wierdo124
06-14-2010, 07:56 PM
But i have a 404 page setup, i can view it no problem, but an error doesn't point to the page.

Rafa-el
06-14-2010, 08:16 PM
Are you sure that you have Apache in the webserver? Maybe you're using ngnix or other.

What's your site URL's?

pant
06-15-2010, 06:05 AM
Actually now that you mention it, if I type in an incorrect url I get a 500 :/

Rafa-el
06-16-2010, 03:31 AM
That's cause you have a bad code for the 404 handle request, check it at the htaccess.

ChopSuey
06-16-2010, 07:41 AM
Meta the 404.shtml to redirect to your 404 script.

pant
06-16-2010, 09:19 AM
When I go into my cPanel and select error pages and then 404 it brings up the code in my txt that I attached.

Meta the 404.shtml to redirect to your 404 script.

I have absolutely no idea what you mean :D

ChopSuey
06-16-2010, 01:39 PM
Ehh https://vborg.vbsupport.ru/showthread.php?t=234274

See contents of 404.sthml

pant
06-18-2010, 12:52 PM
The problem I think is being caused by the modrewrite in the htaccess.

ChopSuey
06-20-2010, 02:40 PM
The problem I think is being caused by the modrewrite in the htaccess.

Yes in your .htaccess ErrorDocument 404 /path/to/your/file

Something like that?