User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 402,503 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,746 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Jan 26th, 2005
Views: 7,153
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/techtalkforum...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
Last edited : Mar 27th, 2008.
php Syntax | 5 stars
  1. ##############################################################
  2. ## Hack Title: vBulletin 3x mod_rewrite
  3. ## Author: Dani http://www.daniweb.com/
  4. ## Contributor: Gandalf http://www.gandalfdir.com/ - remake into phpBB mods like format
  5. ## Description: make your vBulletin forum search engine spiderable - for Google and all the others
  6. ##
  7. ## Compatibility: 3x
  8. ##
  9. ## Installation Level: Moderate
  10. ## Installation Time: 20 Minutes
  11. ##
  12. ## Files To Edit: 10
  13. ## forumhome_forumbit_level1_nopost
  14. ## forumhome_forumbit_level1_post
  15. ## forumhome_forumbit_level2_nopost
  16. ## forumhome_forumbit_level2_post
  17. ## forumhome_subforumbit_nopost
  18. ## forumhome_subforumbit_post
  19. ## forumhome_lastpostby
  20. ## threadbit
  21. ## forumdisplay.php
  22. ## showthread.php
  23. ##
  24. ## Included Files: 1
  25. ## .htaccess
  26. ##
  27. ##
  28. ##
  29. ## Support: http://www.daniweb.com/techtalkforums/thread9379.html
  30. ## Copyright: Copyright © 2005 Dani http://www.daniweb.com/
  31. ## Copyright © Dani http://www.daniweb.com/techtalkforums/thread9379.html
  32. ##
  33. #
  34. #-----[ CREATE .htaccess file]------------------------------------------
  35. #
  36.  
  37. RewriteEngine on
  38. Options +FollowSymLinks
  39. RewriteRule ^thread([0-9]+).html$ showthread.php?t=$1 [L]
  40. RewriteRule ^lastpostinthread([0-9]+).html$ showthread.php?goto=lastpost&t=$1 [L]
  41. RewriteRule ^newpostinthread([0-9]+).html$ showthread.php?goto=newpost&t=$1 [L]
  42. RewriteRule ^forum([0-9]+).html$ forumdisplay.php?f=$1 [L]
  43.  
  44.  
  45. #----[GO TO Styles & Templates/Style Manager/Edit Templates/Forum Home Templates/]
  46. #
  47. #----[OPEN]---------------------------
  48. #
  49. #forumhome_forumbit_level1_nopost
  50. #forumhome_forumbit_level1_post
  51. #forumhome_forumbit_level2_nopost
  52. #forumhome_forumbit_level2_post
  53. #forumhome_subforumbit_nopost
  54. #forumhome_subforumbit_post
  55. #
  56. #
  57. #----Find in above templates-----------------
  58.  
  59. a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">
  60.  
  61. #----Replace with-----------------------------
  62.  
  63. <a href="forum$forum[forumid].html">
  64.  
  65. #
  66. #----[OPEN forumhome_lastpostby template]-------------
  67. #
  68. #----Find---------------------------------------
  69.  
  70. <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>
  71.  
  72. #
  73. #----Replace with----------------------------
  74. #
  75.  
  76. <a href="newpostinthread$lastpostinfo[lastthreadid].html" title="<phrase 1="$lastpostinfo[lastthread]">$vbphrase[go_first_unread_in_thread_x]</phrase>"><strong>$lastpostinfo[trimthread]</strong></a>
  77.  
  78. #
  79. #----Find---------------------------------------
  80. #
  81.  
  82. <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>
  83.  
  84. #
  85. #----Replace with----------------------------
  86. #
  87.  
  88. <a href="lastpostinthread$lastpostinfo[lastthreadid].html"><img class="inlineimg" src="$stylevar[imgdir_button]/lastpost.gif" alt="$vbphrase[go_to_last_post]" border="0" /></a>
  89.  
  90. #
  91. #----Find---------------------------------------
  92. #
  93.  
  94. <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>
  95.  
  96. #
  97. #----Replace with----------------------------
  98. #
  99.  
  100. <a href="lastpostinthread$lastpostinfo[lastthreadid].html"><img class="inlineimg" src="$stylevar[imgdir_button]/lastpost.gif" alt="$vbphrase[go_to_last_post]" border="0" /></a>
  101.  
  102. #----[GO TO Styles & Templates/Style Manager/Edit Templates/Threadbit Templates/]
  103. #
  104. #-----[OPEN threadbit template]-------------
  105. #
  106.  
  107. #
  108. #----Find---------------------------------------
  109. #
  110. <a href="showthread.php?$session[sessionurl]goto=lastpost&t=$thread[threadid]">
  111.  
  112. #
  113. #----Replace with----------------------------
  114. #
  115.  
  116. <a href="lastpostinthread$thread[threadid].html">
  117.  
  118. #
  119. #----Find---------------------------------------
  120. #
  121.  
  122. <a href="showthread.php?$session[sessionurl]goto=newpost&t=$thread[threadid]">
  123.  
  124. #
  125. #----Replace with----------------------------
  126. #
  127.  
  128.  
  129. <a href="newpostinthread$thread[threadid].html">
  130.  
  131. #
  132. #----Find---------------------------------------
  133. #
  134.  
  135. <a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]">
  136.  
  137. #
  138. #----Replace with----------------------------
  139. #
  140.  
  141. <a href="thread$thread[threadid].html">
  142.  
  143. #
  144. #----Find---------------------------------------
  145. #
  146.  
  147. <a href="showthread.php?$session[sessionurl]t=$thread[threadid]&goto=lastpost$thread[highlight]">
  148.  
  149. #
  150. #----Replace with----------------------------
  151. #
  152.  
  153.  
  154. <a href="lastpostinthread$thread[threadid].html">
  155.  
  156.  
  157. #----[GO TO Styles & Templates/Style Manager/Edit Templates/Navigation / Breadcrumb templates/]
  158. #----[OPEN navbar]
  159. #
  160. #---[Find (2 instances)]--------------------------
  161. #
  162. <a href="$vboptions[forumhome].php?$session[sessionurl]" accesskey="1">
  163. #
  164. #---[Replace with]--------------------------------
  165. #
  166. <a href="./" accesskey="1">
  167.  
  168. #----[OPEN forumdisplay.php]-------------------
  169. #
  170. #----Find--------------
  171. #
  172. foreach ($parentlist AS $forumID)
  173. {
  174. $forumTitle = $forumcache["$forumID"]['title'];
  175. $navbits["forumdisplay.php?$session[sessionurl]f=$forumID"] = $forumTitle;
  176. }
  177. #
  178. #----Replace with------
  179. #
  180. foreach ($parentlist AS $forumID)
  181. {
  182. $forumTitle = $forumcache["$forumID"]['title'];
  183. $navbits["forum$forumID.html"] = $forumTitle; // edited by dani
  184. }
  185.  
  186. #----[OPEN shwothread.php]-------------------
  187. #
  188. #----Find---------------------------------------
  189. #
  190. foreach ($parentlist AS $forumID)
  191. {
  192. $forumTitle = $forumcache["$forumID"]['title'];
  193. $navbits["forumdisplay.php?$session[sessionurl]f=$forumID"] = $forumTitle;
  194. }
  195. #
  196. #----Replace with----------------------------
  197. #
  198. foreach ($parentlist AS $forumID)
  199. {
  200. $forumTitle = $forumcache["$forumID"]['title'];
  201. $navbits["forum$forumID.html"] = $forumTitle; // edited by dani
  202. }
  203.  
  204. #
  205. #-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
  206. #
  207. # EoM
Comments (Newest First)
didier-fr | Junior Poster | May 2nd, 2007
hi, this method is vBulletin 3.6.5 compatible?
or use this
http://www.daniweb.com/techtalkforums/thread35147.html
Post Comment

Only community members can submit or comment on code snippets. You must register or log in to contribute.

DaniWeb Marketplace (Sponsored Links)
All times are GMT -4. The time now is 5:38 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC