/ Published in: Apache
Needed to retire a staging domain, so I'm redirected all traffic to the equivalent page in the root directory in the .htaccess file
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ^staging.example\.com$ [NC]<br />RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]