Skip to content

Instantly share code, notes, and snippets.

@briezler
Created September 16, 2016 13:26
Show Gist options
  • Save briezler/283bba52846420ad79ee23bdf6de9962 to your computer and use it in GitHub Desktop.
Save briezler/283bba52846420ad79ee23bdf6de9962 to your computer and use it in GitHub Desktop.
htaccess redirect based on language with ip exclusion
RewriteEngine on
RewriteCond %{HTTP:Accept-Language} (de) [NC]
RewriteCond %{REMOTE_ADDR} !=80.81.2.190
RewriteCond %{REMOTE_ADDR} !=
RewriteCond %{REMOTE_ADDR} !=
RewriteRule .* http://www.URL.de/ [R,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment