The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Spider Friendly URL hack Details »» | |||||||||||||||||||||||||
I've started using better URLs for the search engines and I'm looking for some advice on what templates to modify. I also don't have the multi page part working right currently so I could use some help on that.
I haven't figured out the part to go to specific posts quite yet but I thought I'd share what I have so far. URLs for the threads now look like this: http://www.iamnotageek.com/t-76948.html Insert this into your .htaccess file in your forum base directory. Code:
RewriteEngine on RewriteRule ^t-([0-9]+) showthread.php?t=$1 [L] If that shows the thread properly THEN go into your admincp and use the template search function. Do a search for showthread.php and start editing those templates to send people to these new URLs. Don't modify things like the next page links. This could potentially raise CPU usage quite a bit but my site pulls a decent amount of people per day and I'm not noticing much of a spike in CPU usage. This can also be done for forums. I've done it here http://iamnotageek.com/f-46.html If I can get the next page system working right I'll get the full instructions together. Show Your Support
|
Comments |
#12
|
|||
|
|||
Quote:
|
#13
|
|||
|
|||
I've updated the first post with quite a bit more information.
Djohn it will NOT be creating URLS like that. It will be creating MUCH better URLs |
#14
|
|||
|
|||
Very nice, i can't wait till you figure out how to get all the links a .HTML file!!
|
#15
|
|||
|
|||
I'm working on it I'm having trouble finding where those breadcrumb links are created. I've posted a thread asking for help on this. I'm sure I'm only missing something small to make the multi page work right. I've just done the modifications to newthread and newreply so that they get sent to the right URLs now. I'm slowly tracking things down to eliminate all those nasty URLs.
Search engines are where I get most of my traffic from so everything I can possibly do to improve them I'm going after! I've been capturing quite a few big search phrases the past few months and I've found one that is seriously bringing in nearly 1k ppl/day and about 60 terms that bring in more than 1k ppl this month! I need to pick up the pace for winter when things hit their prime. My .htaccess is now looking like this: Code:
RewriteEngine on RewriteRule ^t-([0-9]+)?-([0-9]+) showthread.php?t=$1&page=$2 [L] RewriteRule ^t-([0-9]+) showthread.php?t=$1 [L] RewriteRule ^f-([0-9]+) forumdisplay.php?f=$1 [L] RewriteRule ^p-([0-9]+) showthread.php?p=$1 [L] |
#16
|
|||
|
|||
Quote:
|
#17
|
|||
|
|||
I edited my post above to include my NOW working multi page support! Here it is a second time just in case you're a lil slow....
Code:
RewriteRule ^t-([0-9]+)?-([0-9]+) showthread.php?t=$1&page=$2 [L] I used dreamweaver to search the entire vbulletin directory for the code $url which is used for redirects in things like the newthread and newpost. I modifed them slightly so now all redirects are working properly. Yes this is running notes as I figure things out... I'm looking for help/suggestions. You will have to know a little bit about the templates and do a bit of thinking but everything you need to know to do this hack is posted in this thread. Step by Step instructions will be put together when I get things finalized. |
#18
|
||||
|
||||
I think Xenon has released somthing to this effect, and Dani released a very good tutorial about this, however ive never had issues with google properly spidering my pages. so i dont see how this makes vBulletin any more SE freindly then nit already is.
|
#19
|
|||
|
|||
Xenon released an archive.... This is quite different since its bringing addresses like that to the actual forum. I'm looking for Dani's Tutorial right now.... Can ya link me? not finding in the search on vb.com or .org
Friendlier URLs like this have shown to get better positioning in searches. One of the key things with google is how many sites are linking to a URL.... Take the URL position benefit THEN tack on people linking to these URLs instead of the showthread.php?t=XXXXX type URLs and I BET you will see a benefit from this. This is not a "quick" fix by any means but eventually over time you will see the benefit. The greatest example of a site getting killer search positioning primarily due to a mod like this is computercops |
#20
|
|||
|
|||
in functions_forumdisplay.php
Code:
$totalpages = ceil($thread['totalposts'] / $pperpage); // orignal line $address = "showthread.php?$session[sessionurl]t=$thread[threadid]"; $address = "t-$thread[threadid]"; $address2 = "$thread[highlight]"; $curpage = 0; Code:
<a href="$address-$curpage$address2.html">$curpage</a> |
#21
|
|||
|
|||
wow this is proving to be alot of work LOL for the top right links: showthread.php
Code:
$DB_site->free_result($posts); unset($post); DEVDEBUG("First Post: $FIRSTPOSTID; Last Post: $LASTPOSTID"); //Line 961 $pagenav = construct_page_nav($totalposts, "t-$threadid", ""); if ($thread['lastpost'] > $bbuserinfo['lastvisit']) { <if condition="$show['first']"><td class="alt1"><a class="smallfont" href="$address-1.html" title="$vbphrase[first_page] - Do basically the same for last page and the next/previous links. Template pagenav_pagelink has all the middle pages This is it for tonight.... I'm done tinkering with this.... The breadcrumb is really the main thing I have left to do on my forum. Then hopefully somebody will help me with the step by step instructions. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|