Skip to content

Instantly share code, notes, and snippets.

@rutger1140
Created July 4, 2013 19:41
Show Gist options
  • Save rutger1140/5929842 to your computer and use it in GitHub Desktop.
Save rutger1140/5929842 to your computer and use it in GitHub Desktop.
Apache Rewrite Rule 301, with Google verification file exclusion
# 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