SMF Support > SMF 2.0.x Support

link rel="canonical"

(1/7) > >>

alphacaveman:
Hi,

There are two things that I need to change that I've found since I upgraded to 2.0.2.

The first is, I saw <meta name="robots" content="noindex" /> on the index page. Please tell me why on earth that would be there? Especially without telling me that "Hey, your forum is automatically set up to tell Google to stay away"?

Secondly, and most importantly because I was able to find the noindex and delete it, but I need to find what file contains,

<link rel="canonical" href="http://www.mydomain.com/fourms/index.php" />
   <link rel="help" href="http://www.mydomain.com/forums/help/" />
   <link rel="search" href="http://www.mydomain.com/forums/search/" />
   <link rel="contents" href="http://www.mydomain.com/forums/index.php" />
   <link rel="alternate" type="application/rss+xml" title="Message Forum - RSS" href="http://www.mydomain.com/forums/.xml/?type=rss" />

Please help, thanks.

Colin:
Hi There,
That code snippet is found in index.template.php which is found in your theme's folder.

alphacaveman:
There are a lot of <link rel=> but not <link rel="canonical"

Colin:
Scroll down. I am staring at it right now on line 137 (Default theme).


--- Code: ---// Present a canonical url for search engines to prevent duplicate content in their indices.
if (!empty($context['canonical_url']))
echo '
<link rel="canonical" href="', $context['canonical_url'], '" />';

--- End code ---

Arantor:
Canonical URL should be left alone unless you have an *extremely* good reason for changing it.

As far as the noindex goes, better question would be why it appears since it shouldn't appear on the index at all unless you have a badly installed mod.

Navigation

[0] Message Index

[#] Next page

Go to full version