View Full Version : Using a page as 404
i want to use a portal page for my 404 error message. Is this possible? what do i need to copy and paste?
Brian
06-30-2005, 10:32 PM
That depends on your server set up. If you're able to enter the link to the page you want to appear though then you should be able to just create your error page and then enter the URL for that page as the page to be displayed for 404 errors.
ConqSoft
06-30-2005, 11:46 PM
If you're on a *nix server, create a .htaccess in the root of your site and put this line:
ErrorDocument 404 /index.php
Brian, my server does that support that
If you're on a *nix server, create a .htaccess in the root of your site and put this line:
ErrorDocument 404 /index.php
What is that actually telling the server?
Say i want http://www.mysite.com/index.php?page=404 to be my 404 error page. Possible?
tomshawk
07-02-2005, 03:16 AM
Brian, my server does that support that
What is that actually telling the server?
Say i want http://www.mysite.com/index.php?page=404 to be my 404 error page. Possible?
Make a copy of the CMPS index.php name it 404.php
Edit it and at the top just below
<?php
add
define('VBA_PORTAL', true);
define('VBA_PAGE', '404');
Copy it up to the server
edit the .htaccess file and tell it
ErrorDocument 404 /404.php
That should do it.
HTH
ConqSoft
07-02-2005, 09:17 AM
I have custom CMPS pages set up for all my error screens, so I have this in my .htaccess:
ErrorDocument 404 /index.php?page=404
ErrorDocument 500 /index.php?page=500
ErrorDocument 403 /index.php?page=403
ErrorDocument 401 /index.php?page=401
Then, just create the CMPS pages named "404", "500", etc, and have it display the message you want.
404 Example: http://www.fireblades.org/thisdoesnotexist
Thanks to both of you. I use conqsoft's method and it works great.
vBulletin® v3.7.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.