The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Change the canonical URLs
Hi,
I'd like to know how we can modify the content of the threads' canonical URLs tags in the forum part. We have a vbulletin integrated within a drupal (news posted on the drupal are duplicated on the vbulletin) and we would need the search engine to reference the portal version of our news and not the forum version. For that, we need to change the canonical URL generated by the VB Forum into the address of the portal. For example we want to reference this in google : Code:
http://lol.fureur.org/dossier/lol-guide-carry-ad-item-build-par-chaox Code:
http://www.fureur.org/forums/showthread.php?t=44639 Code:
<link rel="canonical" href="showthread.php?t=44639" /> Code:
<link rel="canonical" href="http://lol.fureur.org/dossier/lol-guide-carry-ad-item-build-par-chaox" /> It isn't possible for us to do that in a simple .htaccess :/ Is it possible to use a hook (or a hack) in order to choose the way the canonical URL is generated? If yes, how/where would you do that? Thanks in advance for the answers, please notify me if I'm posting in the wrong part of the forum. Best regards, Vivien |
#2
|
||||
|
||||
I might be misinterpreting your questions, but do you not have Friendly URLs enabled in the Admin CP Options?
|
#3
|
||||
|
||||
one way or another there would need to be a custom field in the vbulletin thread editor to allow you to reference the ID of the post in Drupal. Once you can do that, the rest is just simple database calls and auto-template edits with a FIND-REPLACE for the canonical tag.
--------------- Added [DATE]1360039349[/DATE] at [TIME]1360039349[/TIME] --------------- That's the somewhat simple method. Another method would be a full blown backend where you would enter forum thread id, drupal post id and do all your php on the backend to prevent users from messing stuff up. |
Благодарность от: | ||
vivien.prieur |
#4
|
|||
|
|||
Quote:
Quote:
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|