• Resolved gartaud

    (@gartaud)


    Hello. After relying on WordPress to generate rudimentary sitemaps for a while, I have recently installed All in One SEO to generate sitemaps that include metadata.

    After doing so, I ran a SEO report with Bing Scan, and it reported a lot of “Pages containing broken canonical URLs” errors.

    I can see in the source of those pages that indeed after comments <!– All in One SEO 4.4.5.1 – aioseo.com –> <meta name=”robots” content=”max-image-preview:large” /> there are lines that are missing “index.php” in the URLs for the categories of the blog posts (between the hostname and “category”).

    Is this a bug? Can it be fixed? Thanks!

    (note: it seems to impact all the category pages, and only the category pages)

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support MD. Sakib Khandaker

    (@numbnerd14)

    Hi @gartaud

    Thank you so much for getting in touch.

    Could you please head over to WordPress Dashboard > Settings > Permalinks and confirm if your URL Structure is set as below?

    /index.php/%category%/%postname%/

    If so, and you want the /index.php/ to appear in your URLs, please make sure the site structure reflects the same.

    To do that, please head over to WordPress Dashboard > Settings > General and set the WordPress Address (URL) and Site Address (URL) according to your needs.

    This should fix the issue for you. Let me know how it goes!

    Looking forward to helping you.

    Thread Starter gartaud

    (@gartaud)

    Hello and thank you for your reply.

    I use /index.php/%year%/%monthnum%/%day%/%postname%/ for the posts, and the default (blank) for the category prefixes.

    But I think that we misunderstand each other. There is apparently a bug in the code generated by All in One SEO:

    <!-- All in One SEO 4.4.5.1 - aioseo.com -->
    <meta name="robots" content="max-image-preview:large" />
    <link rel="canonical"  />
    <meta name="generator" content="All in One SEO (AIOSEO) 4.4.5.1" />

    Note that /index.php is missing between “www.xxx.zz” and “/category”.

    The code that is generated by WordPress proper later on is correct:

    <link rel="alternate" type="application/rss+xml" title="TTT &raquo; LLL"  />

    Both codes should match, and they don’t.

    • This reply was modified 1 year, 2 months ago by gartaud.
    Thread Starter gartaud

    (@gartaud)

    @arnaudbroes

    Could this be fixed to make Bing happy? Thanks!

    Plugin Author arnaudbroes

    (@arnaudbroes)

    @gartaud I think we might need to take a closer look at your site first because the canonical for terms looks fine on my end so I expect it has something to do with the fact that the index.php part is included in your permalink. I’ve never seen that happen before so we would need to first know how that is set up on your website before we can develop a fix for it. Do you mind reaching out to us at https://aioseo.com/contact so that we can take a closer look? You can use our Basic Question form.

    Plugin Support Steve M

    (@wpsmort)

    @gartaud I’m going to close this post now as you’ve reached out to us.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Pages containing broken canonical URLs’ is closed to new replies.