Skip to content

Instantly share code, notes, and snippets.

@lyquix-owner
Created June 3, 2016 20:58
Show Gist options
  • Save lyquix-owner/2c4e2a027b6413c239a138a5a09bda04 to your computer and use it in GitHub Desktop.
Save lyquix-owner/2c4e2a027b6413c239a138a5a09bda04 to your computer and use it in GitHub Desktop.
Evaluate multiple conditions that execute the same redirect rule
# Redirect multiple domains to another domain #
RewriteEngine On
RewriteCond %{HTTP_HOST} ^espanol.com$ [OR,NC]
RewriteCond %{HTTP_HOST} ^deutsch.com$ [OR,NC]
RewriteCond %{HTTP_HOST} ^suomi.com$ [NC]
RewriteRule ^(.*)$ http://www.example.com/international [R=301,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment