.htaccess redirect facebook crawlers except privacy policy
I have a SPA app with dynamic content for sharing on Facebook so I am redirecting Facebook crawlers to a nice static page using the following rule in htaccess: <IfModule mod_rewrite.c> RewriteCond %{HTTP_USER_AGENT} ^facebookexternalhit.*$ RewriteRule ^(.*)$ https://sharing.mysite.tld/api/share/$1 [L] This works…