• Resolved ozguy

    (@ozguy)


    Hi,

    The home page url is defaulting to the ‘last blog post” Canonical link, instead of the home page URL. The page it references, uses the correct Canonical. However, the home page is wrong and needs fixing.

    I’ve tried to fix this but with no success.

    Help appreciated, thanks!

    Cheers

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 17 total)
  • Plugin Author David Cole

    (@coleds)

    I’m looking into this. Thanks!

    Plugin Author David Cole

    (@coleds)

    It will be fixed in the next release.

    Thread Starter ozguy

    (@ozguy)

    OK.. What would the time frame be on the “next” release?

    Plugin Author David Cole

    (@coleds)

    End of next week. Are you comfortable with editing code? I have quick fix that may work for you.

    Thread Starter ozguy

    (@ozguy)

    Yes I can edit code, as long as I’m given the right instruction etc ??

    Plugin Author David Cole

    (@coleds)

    Line 61/62 of app/Admin/Header.php move

    $sseo_canonical_url = null;

    To line 42 above:

    if (is_front_page() && is_home()) { /* Default Homepage */

    You want that first if statement to basically look like this:

    $sseo_canonical_url = null;
    if (is_front_page() && is_home()) { /* Default Homepage */
    $description = get_option('sseo_default_meta_description');
    $keywords = get_option('sseo_default_meta_keywords');
    $sseo_canonical_url = get_home_url(); /* set canonical url to homepage */
    } elseif (is_home()) { /* Blog Page */

    Let me know if that works. It should, its what I have set for the new release, along with other things.

    Thread Starter ozguy

    (@ozguy)

    Thank you David, I will add this now, and return in 30min or so to provide an update.

    Thread Starter ozguy

    (@ozguy)

    It happens to the best of us… I’m checking that you meant:

    app/Admin/Meta/Header.php

    not: app/Admin/ (there’s not Header.php there)

    Plugin Author David Cole

    (@coleds)

    Correct.

    Thread Starter ozguy

    (@ozguy)

    $sseo_canonical_url = null;
    if (is_front_page() && is_home()) { /* Default Homepage / $description = get_option('sseo_default_meta_description'); $keywords = get_option('sseo_default_meta_keywords'); } elseif (is_home()) { / Blog Page */

    Added as instructed… Have doubled checked and $sseo code line removed fom original position, and inserted as above.

    Hasn’t made any change. However, I’ve got some ISP cache issue that’s driving me nuts, over last few days. F5 refresh, clear DNS cache, change dsn servers, nothing fixes the issue.

    I”ll give it an hour or so and report back then.

    Cheers

    Thread Starter ozguy

    (@ozguy)

    Please excuse the typos. It’s just gone 4am Friday.

    Plugin Author David Cole

    (@coleds)

    If your using Chrome you can open developer tools, then right click the refresh button and choose “empty cache and hard reload”, doing it in an incognito window might help as well.

    Resetting your router to obtain a new DNS may help also.

    Thread Starter ozguy

    (@ozguy)

    I have a dedi IP from my ISP – great for lots of reasons, all except, it seems, now.

    The other possibility…
    Have a managed VPS, and 5 or so days ago they updated to the latest Litespeed version. Previous to this, no cache issues. I’ve submitted a support ticket. Maybe something server sided is causing this.

    Thread Starter ozguy

    (@ozguy)

    According to support, they’ve gone ahead and updated litespeed web server to: (6.3.1 (build 5)). In addition, have flushed any caches and whatnot. So that should be all good, now.

    Decided to disconnect from ISP, and reconnected to my mobile’s Hotspot. Well, that didn’t change anything, the Home page Canonical is still pointing to the last blog post.

    <link rel="canonical" href="https://blog.doch.fyi/online-gambling-industry/igaming-affiliates-fair-treatment/" /><!-- / Simple SEO plugin. -->

    Plugin Author David Cole

    (@coleds)

    Okay, still looking into it.

Viewing 15 replies - 1 through 15 (of 17 total)
  • You must be logged in to reply to this topic.