The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to implement canonical URLs?
Hello. I want to implement canonical URL to avoid duplicity, because vBulletin has identical content that's accessible through multiple URLs, e.g.:
http://forums.com/threads/283 http://forums.com/threads/283-Thread http://forums.com/threads/283-anything What should I enter between these quotes to get a specific URL, that will remain still the same under all circumstances (but every page on my forum must have a unique URL)? <link rel="canonical" href="" /> Thank you for your help. |
#2
|
|||
|
|||
bump
|
#3
|
||||
|
||||
For starters, adding the following to your .htaccess will convert all non-www to www.
That solves half your problems Code:
RewriteEngine On RewriteCond %{HTTP_HOST} !^www\. [NC] RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L] Also in AdminCP>Settings>Options>Friendly URLs> Choose the style you'd like to use, then set Enforce Canonical URL to strict, and Enforce Canonical URL for Registered Users to yes. |
Благодарность от: | ||
Shaheen |
#4
|
|||
|
|||
vBulletin does not support absolute canonical URLs - that's the reason why I want to insert it into the template manually.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|