|
Perfect 404 Error Page
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:
$stylevar[htmldoctype]
PHP Code:
<br><br>
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:
ErrorDocument 404 http://YourSite.com/404.php
........................................................................... Try to work accessing a non existing url Example: http://www.YourSite.com/tsdsd DEMO: http://rotolandia.com/inddfdfdf INFO: https://www.google.com/support/webmasters/bin/answer.py?answer=93641&ctx=sibling Greetings! Sorry about my English and if this mod is too simple ![]() History: Update 1: #16 Spoiler (click to open)
@ MagicThemeParks, try with this code:
Update: XHTML Valid [Whithout tables] ![]() Code:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>
$vboptions[bbtitle]
</title>
</head>
<body>
$header
$navbar
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat">
The requested URL was not found on this server.
</td>
</tr>
<tr>
<td class="alt1"><script type="text/javascript"
xml:space="preserve">//<![CDATA[
var GOOG_FIXURL_LANG = 'en';
var GOOG_FIXURL_SITE = 'http://YourSite.com';
//]]></script> <script type="text/javascript"
src="http://linkhelp.clients.google.com/tbproxy/lh/wm/fixurl.js"
xml:space="preserve"></script> Back to <a
href="http://YourSite.com"><b>home page</b></a> <br /><br /><script
type="text/javascript" xml:space="preserve">//<![CDATA[
google_ad_client = "pub-***********YOUR ID***********";
/* 728x15, creado 13/02/09 */
google_ad_slot = "9714452317";
google_ad_width = 728;
google_ad_height = 15;
//
//]]></script> <script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"
xml:space="preserve">//<![CDATA[
//]]></script>
</td>
</tr>
</table>
$footer
</body>
</html>
Close
XHTML Valid [Whithout tables] ![]() Download
|
|||||||||