Despite many Open Graph topics, I cannot find anything that covers my specific problem. I created a website for a client that consists of several static html pages. since completion, the client wanted to add social buttons, and so I inserted all the necessary meta tags of the Open Graph protocol. (see below)
<meta property="og:title" content="site name" /> <meta property="og:type" content="website" /> <meta property="og:url" content="http://www.mydomain.co.uk/page" /> <meta property="og:image" content="http://www.mydomain.co.uk/images/image.jpg" /> <meta property="og:description" content="page description" />
When testing the selected page in the debugger of the Facebook object, my included meta tags are not displayed. I think the problem may be caused by the .htaccess file that I included to remove the need for ".html" and ".php" ... see below; I believe this is a problem because when I test my site with its .html, it works very well (as long as .html is included in the og: url meta tag.), But if not, there are all kinds of problems, and the Facebook description actually pulls up the text from my css file ..?
<Files .htaccess> order allow,deny deny from all </Files> ErrorDocument 404 /error404.html Options +MultiViews RewriteEngine on RewriteCond %{HTTP_HOST} ^([^.]+\.co.uk) [NC] RewriteRule (.*) http://www.%1/$1 [R=301,L]
There may be something simple, but it seems to me that he is better than me. Any help would be awesome! Thank you in advance.
source share