How to get a Facebook debugger to read the canonical URL?

So this happens when I test my site using Facebook Open Graph Object Debugger:

enter image description here

He does not like the final numbers after the profile page. But I have both of these rules:

<meta property="og:url" content="http://www.website.com/profile/139">
<link rel="canonical" href="http://www.website.com/profile/139">

I tried for hours and it just redirects to the main page:

enter image description here

Is there anything I can add to my .htaccessPHP file or header to prevent 301 redirects?

May be related to how Facebook / Google URL parameters are processed: http://gohe.ro/1fpOA0N

+4
source share
2 answers

WP Engine, URL- . :

  • Googlebot (Google spider)
  • Slurp! (Yahoo spider)
  • BingBot ( Bing)
  • Facebook OG/Debugger

, URL-:

http://www.website.com/profile/12345

:

http://www.website.com/profile

, , . . , WP Engine .

+3

Facebook og: url :

<meta property="og:url" content="http://www.yoursite.com/your-canonical-url" />

URL- , . Canonical. Canonical - , . url, , / , Canocical.

+2

Source: https://habr.com/ru/post/1527819/


All Articles