![]() |
Perfect 404 Error Page
1 Attachment(s)
Hi!
This is my first mod. The common 404 error page, makes visitors close our website since it has no navigation. In this way we lose many users as our url has been changed wen remove vBseo, tFseo or other causes. The modification is simple, create an error page with the internal browser and offer a google search box. Step 1 - Add New Template Title: custom_404 Template: PHP Code:
PHP Code:
Up the attachment to the root of your forum. Step 3 - Add or change your .htaccess If you have the file, add the following: PHP Code:
.................................................. ......................... Try to work accessing a non existing url Example: http://www.YourSite.com/tsdsd DEMO: Sorry, Remove. INFO: http://www.google.com/support/webmas...41&ctx=sibling Greetings! Sorry about my English and if this mod is too simple :p History: Update 1: #16 XHTML Valid [Whithout tables] https://vborg.vbsupport.ru/external/2009/11/50.jpg |
Looks nice, gratz on first Mod (:
|
Thanks!!:)
|
thanks
|
Very nice!
|
Great, I'm going to install this one, thank you! *Marked installed *
|
Reserved to install "Hamijo"
:elrisas: |
looks good, I needed this!
|
Is there any way of getting a report on what URL might have been requested in order to be redirected to this 404 page? After installing the mod I notice that the WhosOnline page will show this 404.php on occasion, and the page being viewed mentions 'Unknown Location.'
UPDATE: I notice that the online.php page gets listed as this 'Unknown Location -- forum/404.php' within the Who'sOnline. It will list myself as viewing the 404.php page, while I'm actually viewing the online.php page. Any idea on how to fix this bug? Update2: Could the reason that the online.php page is being erroneously marked as 'Unknown Location - 404.php' is because my online.php page contains some modifications to its template? Update3: Uninstalled. Hope everyone else's 404 mod is working okay. It looked very nice and did its job, but would cause erroneous 404 markers in the Who's Online page. If it gets a fix I'll be happy to revisit it. |
Who's Online Modification
If you want to show who is browsing this new page of yours, just open up includes/functions_online.php and find: Code:
case 'bugs.php': Below, add: Code:
case '404.php': Then find: Code:
case 'modcplogin': Below add: Code:
case 'custom_404': |
All times are GMT. The time now is 02:41 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|