Skip to content

Instantly share code, notes, and snippets.

@shabbirbhimani

shabbirbhimani/.htaccess

Last active Dec 10, 2017
Embed
What would you like to do?
Redirect OLDDOMAIN to NEWDOMAIN
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^OLDDOMAIN\.com$ [NC]
RewriteRule ^(.*)$ http://NEWDOMAIN.com [R=301,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment