Created
November 22, 2017 15:13
-
-
Save topleague/ef1c987eaab75bbdfd22a66f4ea3f2db to your computer and use it in GitHub Desktop.
Redirect AMP URLs to Non-AMP URLs
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
# Redirect from AMP to non-AMP path | |
RewriteEngine On | |
RewriteCond %{REQUEST_URI} (.+)/amp(.*)$ | |
RewriteRule ^ %1/ [R=301,L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It would be much appreciated if you care to mention source of any snippet. Thank you.