Created
July 4, 2013 19:41
-
-
Save rutger1140/5929842 to your computer and use it in GitHub Desktop.
Apache Rewrite Rule 301, with Google verification file exclusion
This file contains 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 your site to domain.com, except google123456789.html files | |
RewriteEngine On | |
RewriteRule ^google[0-9a-f]+.html$ - [L] | |
RewriteRule ^(.*)$ http://domain\.com/$1 [L,R=301] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment