-
canonical URL
Hi flynax experts,
I am trying to improve my site's SEO score and one of the main issues that the SEO analyzer comes up with is:
Accesible Index Page Configured wrong
Search engines see your https://www.mysite.com and https://www.mysite.com/index.html (or https://www.mysite.com/index.php) as different pages.
If you don't explicitly tell Google which URL is canonical, Google will make the choice for you, or might consider them both of equal weight, which might lead to unwanted behavior.
I can see that my homepage has the following tag:
<link rel="canonical" href="https://www.mysite.com/en/" />
I tried to do some reasearch about canonical URL's but it is all very confusing. I am not sure what I need to change..
Any ideas on how to solve this issue will be hugely appreciated.
Chris
-
Hello,
Actually this problem is solved in the latest updates where index.php redirected to /
so you'd better update your script
or try to use this in templates > tpl > header.tpl:
Code:
Only registered members can view the code.
-
Rudi are you talking about update 4.8.?
-
-
Awesome thanks!
I just noticed also that my pages have a tag: <link rel="canonical" href="http://www...." />
I suspect that this should have https instead of http?
Where is the value for $pageInfo.canonical stored? <link rel="canonical" href="{$pageInfo.canonical}" />
-
you need to change 'http' to 'https' for RL_URL_HOME in your config.inc.php file (from includes)
-