Arcade Fire
10-09-2009, 10:00 PM
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:
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>$vboptions</title>
$headinclude
</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">
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"></script>
<dd><LI>Back to <A HREF="http://YourSite.com"><b>home page</b></A></dd>
<br><br>
<dd><LI><script type="text/javascript"><!--
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">
</script></dd>
</td>
</tr>
</table>
$footer
</body>
</html>Edit:
http://YourSite.com - change for the url of your website two times
google_ad_client = "pub-***********YOUR ID***********"; Enter your PUB number or delete the following if you want to display advertising<br><br>
<dd><LI><script type="text/javascript"><!--
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">
</script></dd>Step 2 - Upload 404.php file
Up the attachment to the root of your forum.
Step 3 - Add or change your .htaccess
If you have the file, add the following:
ErrorDocument 404 http://YourSite.com/404.phpif you do not, you can upload the attachment or create it with this content.
.................................................. .........................
Try to work accessing a non existing url
Example: http://www.YourSite.com/tsdsd
DEMO: Sorry, Remove. (http://rotolandia.com/inddfdfdf)
INFO: http://www.google.com/support/webmasters/bin/answer.py?answer=93641&ctx=sibling
Greetings!
Sorry about my English and if this mod is too simple :p
[B]History:
Update 1: #16 (https://vborg.vbsupport.ru/showpost.php?p=1910923&postcount=16)
XHTML Valid [Whithout tables]
https://vborg.vbsupport.ru/external/2009/11/50.jpg
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:
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>$vboptions</title>
$headinclude
</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">
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"></script>
<dd><LI>Back to <A HREF="http://YourSite.com"><b>home page</b></A></dd>
<br><br>
<dd><LI><script type="text/javascript"><!--
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">
</script></dd>
</td>
</tr>
</table>
$footer
</body>
</html>Edit:
http://YourSite.com - change for the url of your website two times
google_ad_client = "pub-***********YOUR ID***********"; Enter your PUB number or delete the following if you want to display advertising<br><br>
<dd><LI><script type="text/javascript"><!--
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">
</script></dd>Step 2 - Upload 404.php file
Up the attachment to the root of your forum.
Step 3 - Add or change your .htaccess
If you have the file, add the following:
ErrorDocument 404 http://YourSite.com/404.phpif you do not, you can upload the attachment or create it with this content.
.................................................. .........................
Try to work accessing a non existing url
Example: http://www.YourSite.com/tsdsd
DEMO: Sorry, Remove. (http://rotolandia.com/inddfdfdf)
INFO: http://www.google.com/support/webmasters/bin/answer.py?answer=93641&ctx=sibling
Greetings!
Sorry about my English and if this mod is too simple :p
[B]History:
Update 1: #16 (https://vborg.vbsupport.ru/showpost.php?p=1910923&postcount=16)
XHTML Valid [Whithout tables]
https://vborg.vbsupport.ru/external/2009/11/50.jpg