Skip to content

Instantly share code, notes, and snippets.

@joe-dempsey
Created September 4, 2016 16:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joe-dempsey/12c56824a1357159e173424b3d4dcae1 to your computer and use it in GitHub Desktop.
Save joe-dempsey/12c56824a1357159e173424b3d4dcae1 to your computer and use it in GitHub Desktop.
AddType x-httpd-php54 .php
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^olddomain.com [NC]
RewriteRule ^(.*)$ http://www.olddomain.com/$1 [L,R=301,NC]
RedirectMatch 301 ^(.*)$ http://newdomain.com/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment