SMF Support > SMF 2.0.x Support
How to solve Canonical tag
(1/1)
shubha:
After control the spam. Come again to canonical meta tag
www.xxxxxx.com/index.php
In one process ,i get the success but 301 and canonical tag are different.
From now,if i will open the site open
xxxx.com
or
www.xxxxx.com
The site will redirect to www.xxxx.com , without any PHPSESSID.
How to correct the
www.xxxx.com/index.php
to
www.xxxx.com
I can not use the 301 . The problem is from canonical tag. If this problem solve , i will be able to create the sitemap with meta tag .
maestrosite.ru:
In /Source/BoardIndex.php find
--- Code: --- // Set a canonical URL for this page.
$context['canonical_url'] = $scripturl;
--- End code ---
and replace
--- Code: --- // Set a canonical URL for this page.
$context['canonical_url'] = '_forum_main_page_url_';
--- End code ---
shubha:
Not working..............hmmmmmmmmmmm
Navigation
[0] Message Index
Go to full version