vBulletin mod_rewrite in phpBB mod format

Gandalf 0 Tallied Votes 479 Views Share

1. mod_rewrite se friendly pages for vBulletin
Here is a seo hack for vBulletin developed by Danielle Horowitz.

You can find original text at http://www.daniweb.com/techtalkforums/thread9379.html

I have remade her instructions in the phpBB mod like format. You can read them here http://www.daniweb.com/techtalkforums/post87148.html#post87148

You can download text file here

2. Meta tags
How to change meta content and meta description in your vBulletin?

- go to admin panel / vBulletin Options / General Settings

There you will find sections Meta Keywords and Meta Description, change them from standard vBulletin ones to your own.

As my knowledge of vBulletin grows i will post here more SEO tips of vBulletin

If you have any questions feel free to post them here.


See also mod_rewrite and seo tips for phpBB at http://www.gandalfdir.com/forums/bulletin5.html

##############################################################
##   Hack Title: vBulletin 3x mod_rewrite
##   Author: Dani http://www.daniweb.com/
##   Contributor: Gandalf http://www.gandalfdir.com/ - remake into phpBB mods like format
##   Description: make your vBulletin forum search engine spiderable - for Google and all the others
##                
##   Compatibility:   3x
##
##   Installation Level:  Moderate
##   Installation Time: 20 Minutes
##
##   Files To Edit: 10
##   forumhome_forumbit_level1_nopost
##   forumhome_forumbit_level1_post
##   forumhome_forumbit_level2_nopost
##   forumhome_forumbit_level2_post
##   forumhome_subforumbit_nopost
##   forumhome_subforumbit_post
##   forumhome_lastpostby
##   threadbit
##   forumdisplay.php 
##   showthread.php
##
##   Included Files: 1
##                  .htaccess
##
##   
##
##   Support:       http://www.daniweb.com/techtalkforums/thread9379.html
##   Copyright:      Copyright © 2005 Dani http://www.daniweb.com/
##   Copyright © Dani http://www.daniweb.com/techtalkforums/thread9379.html
##
#
#-----[ CREATE .htaccess file]------------------------------------------
#

RewriteEngine on
Options +FollowSymLinks
RewriteRule ^thread([0-9]+).html$ showthread.php?t=$1 [L]
RewriteRule ^lastpostinthread([0-9]+).html$ showthread.php?goto=lastpost&t=$1 [L]
RewriteRule ^newpostinthread([0-9]+).html$ showthread.php?goto=newpost&t=$1 [L]
RewriteRule ^forum([0-9]+).html$ forumdisplay.php?f=$1 [L] 


#----[GO TO Styles & Templates/Style Manager/Edit Templates/Forum Home Templates/]
#
#----[OPEN]---------------------------
#
#forumhome_forumbit_level1_nopost
#forumhome_forumbit_level1_post
#forumhome_forumbit_level2_nopost
#forumhome_forumbit_level2_post
#forumhome_subforumbit_nopost
#forumhome_subforumbit_post
#
#
#----Find in above templates-----------------

a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"> 

#----Replace with-----------------------------

<a href="forum$forum[forumid].html"> 

#
#----[OPEN forumhome_lastpostby template]------------- 
#
#----Find--------------------------------------- 

<a href="showthread.php?$session[sessionurl]goto=newpost&t=$lastpostinfo[lastthreadid]" title="<phrase 1="$lastpostinfo[lastthread]">$vbphrase[go_first_unread_in_thread_x]</phrase>"><strong>$lastpostinfo[trimthread]</strong></a>

#
#----Replace with---------------------------- 
#

<a href="newpostinthread$lastpostinfo[lastthreadid].html" title="<phrase 1="$lastpostinfo[lastthread]">$vbphrase[go_first_unread_in_thread_x]</phrase>"><strong>$lastpostinfo[trimthread]</strong></a>

#
#----Find--------------------------------------- 
#

<a href="showthread.php?$session[sessionurl]goto=lastpost&t=$lastpostinfo[lastthreadid]"><img class="inlineimg" src="$stylevar[imgdir_button]/lastpost.gif" alt="$vbphrase[go_to_last_post]" border="0" /></a> 

#
#----Replace with---------------------------- 
#

<a href="lastpostinthread$lastpostinfo[lastthreadid].html"><img class="inlineimg" src="$stylevar[imgdir_button]/lastpost.gif" alt="$vbphrase[go_to_last_post]" border="0" /></a> 

#
#----Find--------------------------------------- 
#

<a href="showthread.php?$session[sessionurl]goto=lastpost&t=$lastpostinfo[lastthreadid]"><img class="inlineimg" src="$stylevar[imgdir_button]/lastpost.gif" alt="$vbphrase[go_to_last_post]" border="0" /></a> 

#
#----Replace with---------------------------- 
#

<a href="lastpostinthread$lastpostinfo[lastthreadid].html"><img class="inlineimg" src="$stylevar[imgdir_button]/lastpost.gif" alt="$vbphrase[go_to_last_post]" border="0" /></a> 

#----[GO TO Styles & Templates/Style Manager/Edit Templates/Threadbit Templates/]
#
#-----[OPEN threadbit template]------------- 
#

#
#----Find--------------------------------------- 
# 
<a href="showthread.php?$session[sessionurl]goto=lastpost&t=$thread[threadid]">

#
#----Replace with---------------------------- 
#

<a href="lastpostinthread$thread[threadid].html">

#
#----Find--------------------------------------- 
#

<a href="showthread.php?$session[sessionurl]goto=newpost&t=$thread[threadid]"> 

#
#----Replace with---------------------------- 
#


<a href="newpostinthread$thread[threadid].html"> 

#
#----Find--------------------------------------- 
#

<a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]">

#
#----Replace with---------------------------- 
#

<a href="thread$thread[threadid].html"> 

#
#----Find--------------------------------------- 
#

<a href="showthread.php?$session[sessionurl]t=$thread[threadid]&goto=lastpost$thread[highlight]">

#
#----Replace with---------------------------- 
#


<a href="lastpostinthread$thread[threadid].html">


#----[GO TO Styles & Templates/Style Manager/Edit Templates/Navigation / Breadcrumb templates/]
#----[OPEN navbar]
#
#---[Find (2 instances)]--------------------------
#
<a href="$vboptions[forumhome].php?$session[sessionurl]" accesskey="1"> 
#
#---[Replace with]--------------------------------
#
<a href="./" accesskey="1"> 

#----[OPEN forumdisplay.php]-------------------
#
#----Find-------------- 
#
foreach ($parentlist AS $forumID)
{
	$forumTitle = $forumcache["$forumID"]['title'];
	$navbits["forumdisplay.php?$session[sessionurl]f=$forumID"] = $forumTitle;
}
#
#----Replace with------ 
#
foreach ($parentlist AS $forumID)
{
$forumTitle = $forumcache["$forumID"]['title'];
$navbits["forum$forumID.html"] = $forumTitle; // edited by dani
} 

#----[OPEN shwothread.php]-------------------
#
#----Find--------------------------------------- 
#
foreach ($parentlist AS $forumID)
{
	$forumTitle = $forumcache["$forumID"]['title'];
	$navbits["forumdisplay.php?$session[sessionurl]f=$forumID"] = $forumTitle;
}
#
#----Replace with---------------------------- 
#
foreach ($parentlist AS $forumID)
{
$forumTitle = $forumcache["$forumID"]['title'];
$navbits["forum$forumID.html"] = $forumTitle; // edited by dani
} 

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
Xenon 0 Technical Admin Team Colleague

Nice! :)

didier-fr 0 Junior Poster

hi, this method is vBulletin 3.6.5 compatible?
or use this
http://www.daniweb.com/techtalkforums/thread35147.html

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.