vBulletin Search Engine Optimization
This is a discussion on Create a Custom vBulletin "404 Page Not Found" Page, and direct vBSEO to use it. within the Member Articles forums, part of the Focus on Members category; This will allow you to create a custom 404 Page Not Found page that uses your vBulletin templates, and includes ...
| |||||||
Enhancing 80 million pages. | Register | FAQ | Members List | Social Groups | Calendar | Search | Today's Posts | Mark Forums Read |
| | ||||
| ||||
| Create a Custom vBulletin "404 Page Not Found" Page, and direct vBSEO to use it. This will allow you to create a custom 404 Page Not Found page that uses your vBulletin templates, and includes your vBulletin header, navbar, and footer. All without modifying any vBulletin files. Create a new template named custom_404 and paste the following content into it. (Feel free to customize, of course.) Code: $stylevar[htmldoctype] <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]"> <head> <!-- no cache headers --> <meta http-equiv="Pragma" content="no-cache" /> <meta http-equiv="Expires" content="-1" /> <meta http-equiv="Cache-Control" content="no-cache" /> <!-- end no cache headers --> $headinclude <title>Page Not Found - <phrase 1="$vboptions[bbtitle]">$vbphrase[x_powered_by_vbulletin]</phrase></title> </head> <body> $header $navbar <br /> <div style="padding-left: 25px; padding-right: 25px; font-weight: bold;" align="center"> Sorry, the page you have requested cannot be found. <br/><br/> You can try a <a href="$vboptions[bburl]/search.php">search</a> if you are looking for something specific. </div> $footer </body> </html> Then, create a file called 404.php in your site root, or forums root, and paste the following content into it. You will need to customize the code in red to point to the physical location of the misc.php file that comes with vBulletin. Code: <?php
header("HTTP/1.0 404 Not Found");
header("Status: 404 Not Found");
$_GET['do']='page';
$_REQUEST['do']='page';
$_GET['template']='404';
$_REQUEST['template']='404';
define('VBSEO_PREPROCESSED', 1);
include '/usr/home/username/public_html/forums/misc.php';
?>
Then, in your vBSEO Control Panel, for the "File Not Found" requests handling? setting, enter the following. Again, you will need to customize this to point to the actual physical location of the 404.php file that you created in the previous step. Code: /usr/home/username/public_html/404.php
__________________ Keith Cohen / Crawlability Inc. Support Team Launches New DeskPro Powered Tool Enhanced Support at Your Service vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations 6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You. My Personal Sites: My Blog | GPS Discussion Forum Last edited by Keith Cohen; 02-07-2007 at 11:02 PM. |
|
#2
| ||||
| ||||
|
Wow! This is really SOMETHING! Thanks for the article, Keith. I appreciate it. |
|
#3
| |||
| |||
|
Awesome I'll set this up in a bit!!! :yay
|
|
#4
| |||
| |||
|
this is very neat,thanks much |
|
#5
| ||||
| ||||
|
Nice, I was thinking about it but not sure if it would be a good idea, with the search option included its actually better than redirecting to the homepage.
|
|
#6
| |||
| |||
|
Awesome works great |
|
#7
| ||||
| ||||
|
You can use a .htaccess file to point to a custom 404 page, or some hosts have an online interface to let you specify a custom 404 page. Just point them to that same 404.php file you created.
__________________ Keith Cohen / Crawlability Inc. Support Team Launches New DeskPro Powered Tool Enhanced Support at Your Service vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations 6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You. My Personal Sites: My Blog | GPS Discussion Forum |
|
#8
| ||||
| ||||
|
Changed it a bit for different layout: http://forum.dutchbodybuilding.com/404 If you want it here's the code for in the template: PHP Code: |
|
#9
| ||||
| ||||
|
Why is it not seeing my CSS? http://www.mustangevolution.com/foru...eadlights.html NM I just copied and pasted it into the template. Is there a problem reading it when the style is stored in the file system? |
|
#10
| ||||
| ||||
| Ok, Oleg to the rescue! You need to add this line to the 404.php file to correct the issue. (First post updated.) This is the line that was added: Code: define('VBSEO_PREPROCESSED', 1);
__________________ Keith Cohen / Crawlability Inc. Support Team Launches New DeskPro Powered Tool Enhanced Support at Your Service vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations 6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You. My Personal Sites: My Blog | GPS Discussion Forum |
|
#11
| ||||
| ||||
|
Hehe. I'm not sure whether you'll like mine but here you go. Check it out. Final Fantasy Forums - HTTP Error 404: File Not Found If you guys like it, then I'd be happy to share it with you all. Also I have even created from 400 till 505 custom error pages which took me a while to do that. |
|
#12
| |||
| |||
| Quote:
ErrorDocument 404 /forums/404.php but the stupid thing just won't work ... *cries* |
|
#13
| |||
| |||
| DarkBlade, can you please share your custom error pages? they really look good |
|
#15
| |||
| |||
|
Thanks Keith, nice custom feature!
|
| Tags |
| 404, custom pages |
| Thread Tools | |
| |
LinkBacks (?)
| ||||
| Posted By | For | Type | Date | |
| Solo 297 pagine indicizzate, ma perchè? | This thread | Refback | 02-21-2007 09:33 AM | |