• Resolved fourandhalfgarrett

    (@fourandhalfgarrett)


    I noticed when I enable Facebook settings -> Add Open Graph meta data, an attribute is added at the top of the page source within the html tag: html lang=”en-US” prefix=”og: https://ogp.me/ns#“.

    Does it matter for SEO purposes if that URL is http vs https? I don’t see any mixed content errors, so it seems to me that it shouldn’t matter, but I figured I would see if anyone knew for certain one way or the other.

    If it does matter, is there a way to change it on our end, or is it an issue that Yoast needs to take care of?

    Thanks!

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Maybellyne

    (@maybellyne)

    Hello Fourandhalfgarrett,

    Thanks for the question about the HTML tag you noticed in the page source of your site.

    <html lang="en-US" prefix="og: https://ogp.me/ns#"> is used to implement the Open Graph Protocol. Not quite sure if it is HTTP or HTTPS. You can read more about it here, here and here.

    Thread Starter fourandhalfgarrett

    (@fourandhalfgarrett)

    Hi Maybellyne,

    Thanks for your response. I understand what the tag is for. I was asking if it matters for SEO that the URL is http instead of https. Normally a page that loads over https should not have any http URLs on it, but I’m not sure if it matters in this case.

    Thanks

    Plugin Support Michael Ti?a

    (@mikes41720)

    Hi @fourandhalfgarrett

    We aren’t sure if this code

    <html lang="en-US" prefix="og: https://ogp.me/ns#">

    is outputted by the Yoast SEO plugin.

    Often, we see problems occur in combination with another plugin or theme. The fastest way to rule out any conflict, is to deactivate all non-Yoast plugins and switch to a standard theme like Twenty Twenty.

    Please test this on your development or staging site, if you have one. If not, we recommend using the Health Check & Troubleshooting plugin. This plugin has a troubleshooting mode, which does not affect normal visitors to your site.

    If you’re unfamiliar with checking for conflicts, we’d like to point you to a step-by-step guide that will walk you through the process: How to check for plugin conflicts

    With a default WP theme (e.g. TwentyTwenty) and just the Yoast SEO plugin enabled (with open graph tags enabled), do you still see it in the page source of your site?

    Thread Starter fourandhalfgarrett

    (@fourandhalfgarrett)

    Hi Michael,

    That line of code is toggled by the Facebook settings within the Yoast SEO plugin. When I enable “Add Open Graph meta data”, the code appears. When I disable it, the code disappears.

    I also tested this with all other plugins disabled, and the Twenty Twenty-Two theme enabled, and it held true.

    Are you able to tell me if having an http URL (instead of https) in that line will affect SEO?

    Thanks

    Plugin Support Michael Ti?a

    (@mikes41720)

    Hi @fourandhalfgarrett

    We created a new test install with the WP TwentyTwentyTwo theme and just Yoast SEO 18.6 as the plugin enabled, and we did enable the open graph data.

    While the Yoast SEO plugin does add open graph data, we weren’t able to find the prefix="og: https://ogp.me/ns#" html tag being added in the page source, so we suspect it’s coming from another source on your test site. (https://snipboard.io/YfPtHx.jpg)

    However, in any case, when accessing that URL, it leads to a 404 (the HTTP version 301 redirects to the HTTPS version and it leads to a 404) so we wouldn’t advise outputting any links to 404s in this case.

    You might have to investigate further if it’s being caused by custom code or by some other plugin or theme.

    Thread Starter fourandhalfgarrett

    (@fourandhalfgarrett)

    Okay, thanks!

    Could the Premium version of the plugin be the difference? I ran the same test on another of our sites that uses the non-premium version, and I don’t see that prefix attribute.

    • This reply was modified 2 years, 6 months ago by fourandhalfgarrett. Reason: Added a question about the premium version of the plugin
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘http URL in Open Graph attribute’ is closed to new replies.