Website URL
I’ve been trying to get the open graph properties to display the image and text desired for my website. Old descriptions (from when I used the domain on tumblr) and placeholder.png (angry birds) are showing up instead. And when I try to check it with facebook sharing debugger, openGraph.xyz or ahrefs, I get error messages:
facebook sharing debugger: URL returned a bad HTTP response code.
opengraph.xyz: ERROR fetch failed
After looking up several guides, I’m still having trouble getting this working. In fact, it looks like, while doing so, I’ve broken the www version of my site (‘www.selliotp.com redirected you too many times’). Here’s what I’ve done:
Got an SSL certificate- requested and installed from the InfinityFree dashboard (do I need to get one from CloudFlare?)
CloudFlare- Some posts in this forum seemed to suggest that CloudFlare is needed for openGraph stuff to work, so I followed this guide to run my dns management through CloudFlare. These domains all have a proxy status of ‘proxied’ except for the MX one which is DNS only:
You can see this in my page’s html, but here are the relevant elements in my html head:
<link href="slider.css" rel="stylesheet">
<link rel=“canonical” href=“https://selliotp.com” />
<title>stephan e perez : performance and new media</title>
<meta property="og:title" content="stephan e perez - artist" />
<meta property="og:url" content="https://selliotp.com" />
<meta property="og:type" content="website" />
<meta property="og:description" content="performance and new media" />
<meta property="og:image" content="https://selliotp.com/archives/images/lettertomom/lores/00.jpg" />
Here’s my .htaccess file. N.b. this is in my htdocs folder, not the IF default one:
## Falg for GoDaddy
Options +MultiViews
## php_value display_errors On
## Remove extensions
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.php [NC,L]
## Redirect from extensions to non-extensions
RewriteCond %{THE_REQUEST} \s/+(.+?).php[\s?] [NC]
RewriteRule ^ /%1 [R=301,NE,L]
## Get rid of ?i=1
RewriteEngine On
RewriteCond %{QUERY_STRING} ^(.*)i=[^&]+(.*)$ [NC]
RewriteRule ^(.*)$ /$1?%1%2 [R=301,L]
##
RewriteEngine On
RewriteCond %{HTTP:X-Forwarded-Proto} =http
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
There are so many aspects to this that I’m sure I’ve made a mistake in at least one of these places… but not sure how to continue.