Exempt Facebook Crawler from .htaccess redirect
snippet in htaccess

Exempt Facebook Crawler from .htaccess redirect

user6873

RewriteEngine on
RewriteCond %{HTTPS} off
RewriteCond %{HTTP_USER_AGENT} !facebookexternalhit/[0-9]
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}