vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   rel=canonical in threads (https://vborg.vbsupport.ru/showthread.php?t=231259)

pharmacist 12-26-2009 08:57 PM

rel=canonical in threads
 
It's very complicated to add meta rel="canonical" in showthread pages

Code:

<link rel="canonical" href="http://www.myforums.com/forum/showthread.php?$session[sessionurl]t=$threadid">
It was successfully canonical forum/showthread.php?t=xxxx
preventing showthread.php?p=xxxx ( that's good) which redirected to /showthread.php?t=xxxx
prevent showthread.php?t=xxxx&page=1 (that's very good) which redirected to /showthread.php?t=xxxx
,but also preventing
showthread.php?t=xxxx&page=2 ( very bad) " I don't want pages other than page=1 to be prevented as duplicate url" that means any page=xx redirected to /showthread.php?t=xxxx and that's very bad

my question how to add <if condition="$pagenumber>1"> in url with showthread.php?t=xxxx&page=2 /page3/page4 etc.. not to be prevented ???

any one understand me??

I think only SEO advanced users who can understand me !!!!

waiting help from SEO advanced users and Vbulleting advanced expert!!!

badawidollah 12-26-2009 11:52 PM

Quote:

Originally Posted by pharmacist (Post 1938935)
It's very complicated to add meta rel="canonical" in showthread pages

Code:

<link rel="canonical" href="http://www.myforums.com/forum/showthread.php?$session[sessionurl]t=$threadid">
It was successfully canonical forum/showthread.php?t=xxxx
preventing showthread.php?p=xxxx ( that's good) which redirected to /showthread.php?t=xxxx
prevent showthread.php?t=xxxx&page=1 (that's very good) which redirected to /showthread.php?t=xxxx
,but also preventing
showthread.php?t=xxxx&page=2 ( very bad) " I don't want pages other than page=1 to be prevented as duplicate url" that means any page=xx redirected to /showthread.php?t=xxxx and that's very bad

my question how to add <if condition="$pagenumber>1"> in url with showthread.php?t=xxxx&page=2 /page3/page4 etc.. not to be prevented ???

any one understand me??

I think only SEO advanced users who can understand me !!!!

waiting help from SEO advanced users and Vbulleting advanced expert!!!

i need this canonical
how to modify it?
:D

pharmacist 12-31-2009 09:23 PM

any help!!!!

se7o 12-06-2013 12:11 PM

i rely need it to my fourm

could you look to this topic its for vb3

i think it may help you
https://vborg.vbsupport.ru/showthread.php?t=225117

--------------- Added [DATE]1386335940[/DATE] at [TIME]1386335940[/TIME] ---------------

i find it
i think it may help you
<link rel="canonical" href="{vb:raw thread_url}" />

--------------- Added [DATE]1386337521[/DATE] at [TIME]1386337521[/TIME] ---------------

<link rel="canonical" href="{vb:raw thread_url}" />


the problem here ^_^
{vb:raw thread_url}


All times are GMT. The time now is 11:55 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01047 seconds
  • Memory Usage 1,720KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete