Created
March 8, 2017 22:46
-
-
Save jms/76db7918fe3027dc28ba07eaaf34d95c to your computer and use it in GitHub Desktop.
spa - share on social media
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # allow social media crawlers to work by redirecting them to a server-rendered static version on the page | |
| RewriteCond %{HTTP_USER_AGENT} (facebookexternalhit/[0-9]|Twitterbot|Pinterest|Google.*snippet) | |
| RewriteRule (.*) https://path_static_page [P] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment