nizamo
01-21-2017, 02:30 PM
After I redirected my site to SSL I lost Facebook likes of my non-SSL index page. I added meta property="og:url" there however I need Exempt the Facebook crawler from HTTPS redirect. How can I do this? Below is the my current .htaccess file:
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://example.com/$1 [R=301,L]
Added to my index file:
<meta property="og:url" content="http://example.com/old-url" />
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://example.com/$1 [R=301,L]
Added to my index file:
<meta property="og:url" content="http://example.com/old-url" />