+ Reply to Thread
Results 1 to 7 of 7

Thread: canonical URL

  1. #1

    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

  2. #2
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,138
    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.

  3. #3
    Guru
    Join Date
    Jul 2019
    Location
    Australia
    Posts
    657
    Rudi are you talking about update 4.8.?

  4. #4
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,138
    at least 4.7.0

  5. #5
    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}" />

  6. #6
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,138
    you need to change 'http' to 'https' for RL_URL_HOME in your config.inc.php file (from includes)

  7. #7
    Found it. Thank you!

+ Reply to Thread