Skip to content

Instantly share code, notes, and snippets.

@lyquix-owner
Created June 3, 2016 20:57
Show Gist options
  • Save lyquix-owner/230ea9c469e1e907ebf27fd2244ea2d8 to your computer and use it in GitHub Desktop.
Save lyquix-owner/230ea9c469e1e907ebf27fd2244ea2d8 to your computer and use it in GitHub Desktop.
Redirect any URL in domain to a page in another domain
# Redirect domain to page in another domain #
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.spanish.com$ [NC]
RewriteRule ^(.*)$ http://www.example.com/spanish [R=301,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment