/ Published in: Apache
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
Options +FollowSymLinks RewriteEngine on RewriteCond %{HTTP_HOST} ^(www\.)?olddomain\.com$ [NC] RewriteRule .* http://www.newdomain.com%{REQUEST_URI} [R=301,L]