Facebook Sharing DeBugging: 301 Errors on Facebook Shares

Category: TroubleShooting | Last modified: August 28, 2020

If sharing articles and pages from your website results in a 301 redirect error on Facebook, there are a few debugging steps you can take to isolate the reason why.

Check Your Plugins

Check to see if you have a plugin installed that is forcing HTTPS. Pressable’s servers automatically force an HTTPS connection and it is unnecessary to use a plugin. In the past the Really Simple SSL plugin has been the cause of this redirect error.

Cloudflare Settings

Are you using Cloudflare to manage your DNS? If so, double check your settings under “SSL/TLS” –> “Edge Certificates”. You want to ensure that the setting for “Always Use HTTPS” is turned off.

Multisite

If your website is a multisite, you may need to add this snippet to the bottom of your wp-config.php file:

$_SERVER[‘HTTPS’]=’on’;

Testing The Results

Once you have applied one of these fixes to your site you can test the results in the Facebook debugger: https://developers.facebook.com/tools/debug/. Press the “Scrape Again” button to clear the cached scrape of this page.

An Automattic Invention A family of WordPress solutions.