Log in

View Full Version : Exempt the Facebook crawler from HTTPS redirect



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" />

nizamo
01-23-2017, 05:26 PM
Is this possible?

jscheuer1
01-24-2017, 01:42 PM
Have you tried the advice here:

http://stackoverflow.com/questions/19164861/exempt-facebook-crawler-from-htaccess-redirect

?

nizamo
01-24-2017, 04:55 PM
Have you tried the advice here:

http://stackoverflow.com/questions/19164861/exempt-facebook-crawler-from-htaccess-redirect

?
Worked fine thank you Mr. John.