http://www.site1.com -> site1.com
http://www.site2.com -> site2.com
But I don't want to have to make a rule for each site.... So I thought this would work, but it is not. Any help would be great!
Code: Select all
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.(.*)\.com$ [NC]
RewriteRule ^(.*)$ http://%1%{REQUEST_URI}\.com [L,R=301]