Customizing SMF > Modifications and Packages

Anti-SID canonical tag - without PHPSESSID param

(1/3) > >>

maestrosite.ru:
Link to Mod

Add canonical tag for main page, boards and topics pages without SID (PHPSESSID) param.
For SMF 2.0.x also lock default canonical tag.

Demo http://sibsp.MaestroSite.ru/forum/
Support http://MaestroSite.ru/
E-mail smf@maestrosite.ru

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Вывод тега "canonical" для главной страницы, страниц разделов и тем, строго без сессисоной переменной (даже для первой загрузки страницы)

Пример работы мода http://sibsp.MaestroSite.ru/forum/
Сопровождение http://MaestroSite.ru/
E-mail smf@maestrosite.ru

Этот мод доступен по лицензии Creative Commons Attribution-ShareAlike (Атрибуция — С сохранением условий) 3.0 Непортированная.

Rivet:
How do you set the canonical tag once its been installed?  Thanks.

maestrosite.ru:

--- Quote from: Rivet on March 14, 2012, 07:40:49 PM ---How do you set the canonical tag once its been installed?  Thanks.

--- End quote ---

Good day!
For smf2.x this mod use native variable $context['canonical_url'].
For smf1.x - create url by variables ['current_topic'] ,  ['current_board']  and  ['current_action']

shubha:
It will count the PHPSESSID in seo software or not. Normally in my website , no PHPSESSID shows at the top as well not in search engine. But in SEO software its.

maestrosite.ru:

--- Quote from: shubha on April 25, 2012, 07:48:48 AM ---It will count the PHPSESSID in seo software or not. Normally in my website , no PHPSESSID shows at the top as well not in search engine. But in SEO software its.

--- End quote ---

You can remove session (auth) cookies for your forum, or use guest session in your browser, and load any topic (your forum). For first loaded page you can see
that internal links contains PHPSESSID. Tag "canonical" also contains session value.

For example, by direct link to your message:

--- Code: ---$ curl -A 'Mozilla/5.0' http://www.simplemachines.org/community/index.php?topic=470299.msg3321726#msg3321726 | grep '"canonical"'
--- End code ---
note: this site rename "PHPSESSID" to "P"

PS can I see your forum url?

Navigation

[0] Message Index

[#] Next page

Go to full version