Return to Snippet

Revision: 16096
at July 26, 2009 18:34 by canarymason


Initial Code
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^staging.example\.com$ [NC]<br />RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]

Initial URL


Initial Description
Needed to retire a staging domain, so I'm redirected all traffic to the equivalent page in the root directory in the .htaccess file

Initial Title
redirect  from a subdomain to the main domain

Initial Tags
htaccess

Initial Language
Apache