Revision: 50204
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at August 16, 2011 04:07 by beneberle
Initial Code
###### always access from www and redirect multiple doamins to one rewriteCond %{http_host} ^domain\.com$ [OR] rewriteCond %{http_host} ^domain\.org$ [OR] rewriteCond %{http_host} ^www\.domain\.org$ [OR] rewriteCond %{http_host} ^subdomain\.domain\.org$ [OR] rewriteCond %{http_host} ^www\.subdomain\.domain\.org$ [NC] rewriteRule ^(.*)$ http://www.domain.com/$1 [r=301,L] ######always access from non-www and redirect multiple doamins to one rewriteCond %{http_host} ^www\.domain\.com$ [NC] rewriteRule ^(.*)$ http://domain.com/$1 [r=301,L]
Initial URL
Initial Description
Initial Title
.htaccess domain redirects
Initial Tags
unix, htaccess
Initial Language
Bash