abdobasha2004
10-12-2009, 10:00 PM
This is a simple mod. to apply rel="canonical" (http://googlewebmastercentral.blogspot.com/2009/02/specify-your-canonical.html) to vbulletin pages.
Presented from : http://www.nmisr.com/vb/
this is applied for : showthread, forumdisplay and forumhome.
Template Edits : 3
Value : SEO value :
1 - Prevent duplicate content
2 - Better page rank assignment to your page as a result
3 steps :
Open vbulletin admin pannel ---> Edit style templates ---> {choose your used style}
then :
1- Find Showthread template, then you have 2 options :
i) include thread pages (if the thread have multiple pages) then Find </head> and before it add :
<!-- 100fm6.com canonical -->
<link rel="canonical" href="$vboptions[bburl]/showthread.php?t=$threadinfo[threadid]<if condition="$pagenumber>1">&page=$pagenumber</if>" />
<!-- /100fm6.com canonical -->
ii) Include only the first page of threads then Find </head> and before it add :
<!-- 100fm6.com canonical -->
<link rel="canonical" href="$vboptions[bburl]/showthread.php?t=$threadinfo[threadid]" />
<!-- /100fm6.com canonical -->
2- Find Forumhome template, then Find </head> and before it add :
<!-- 100fm6.com canonical -->
<link rel="canonical" href="$vboptions[bburl]" />
<!-- /100fm6.com canonical -->
3- Find Forumdisplay, then you have 2 options :
i) include forumdisplay pages (Recommended) then Find </head> and before it add :
<!-- 100fm6.com canonical -->
<link rel="canonical" href="$vboptions[bburl]/forumdisplay.php?f=$foruminfo[forumid]<if condition="$pagenumber>1">&page=$pagenumber</if>" />
<!-- /100fm6.com canonical -->
ii) Include only the first page of forums then Find </head> and before it add :
<!-- 100fm6.com canonical -->
<link rel="canonical" href="$vboptions[bburl]/forumdisplay?f=$foruminfo[forumid]" />
<!-- /100fm6.com canonical -->
for better SEO try to make this compatible with sitemap options
For any suggestion, I will be glad to here from you ...
Thanks to FRDS (https://vborg.vbsupport.ru/member.php?u=200299) who have made this as a product (https://vborg.vbsupport.ru/showthread.php?p=1745800)
Presented from : http://www.nmisr.com/vb/
this is applied for : showthread, forumdisplay and forumhome.
Template Edits : 3
Value : SEO value :
1 - Prevent duplicate content
2 - Better page rank assignment to your page as a result
3 steps :
Open vbulletin admin pannel ---> Edit style templates ---> {choose your used style}
then :
1- Find Showthread template, then you have 2 options :
i) include thread pages (if the thread have multiple pages) then Find </head> and before it add :
<!-- 100fm6.com canonical -->
<link rel="canonical" href="$vboptions[bburl]/showthread.php?t=$threadinfo[threadid]<if condition="$pagenumber>1">&page=$pagenumber</if>" />
<!-- /100fm6.com canonical -->
ii) Include only the first page of threads then Find </head> and before it add :
<!-- 100fm6.com canonical -->
<link rel="canonical" href="$vboptions[bburl]/showthread.php?t=$threadinfo[threadid]" />
<!-- /100fm6.com canonical -->
2- Find Forumhome template, then Find </head> and before it add :
<!-- 100fm6.com canonical -->
<link rel="canonical" href="$vboptions[bburl]" />
<!-- /100fm6.com canonical -->
3- Find Forumdisplay, then you have 2 options :
i) include forumdisplay pages (Recommended) then Find </head> and before it add :
<!-- 100fm6.com canonical -->
<link rel="canonical" href="$vboptions[bburl]/forumdisplay.php?f=$foruminfo[forumid]<if condition="$pagenumber>1">&page=$pagenumber</if>" />
<!-- /100fm6.com canonical -->
ii) Include only the first page of forums then Find </head> and before it add :
<!-- 100fm6.com canonical -->
<link rel="canonical" href="$vboptions[bburl]/forumdisplay?f=$foruminfo[forumid]" />
<!-- /100fm6.com canonical -->
for better SEO try to make this compatible with sitemap options
For any suggestion, I will be glad to here from you ...
Thanks to FRDS (https://vborg.vbsupport.ru/member.php?u=200299) who have made this as a product (https://vborg.vbsupport.ru/showthread.php?p=1745800)