brooklyndesignstudio

RewriteCond From One Domain To Another

Nov 30th, 2020
53
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <IfModule mod_rewrite.c>
  2.   RewriteEngine On
  3.   RewriteCond %{HTTP_HOST} ^olddomain.com$ [OR]
  4.   RewriteCond %{HTTP_HOST} ^www.olddomain.com$
  5.   RewriteRule (.*)$ http://www.newdomain.com/$1 [R=301,L]
  6. </IfModule>
RAW Paste Data