Forum Moderators: phranque
The file currently has redirects for parked domains which worked fine, but when I tired to add a redirect so anyone attempting to access www.example.com, is automatically redirected to [example.com...] I run into problems. I think it's something minor, but not sure.
File is below:
RewriteEngine On
RewriteCond %{SERVER_PORT}!443
RewriteRule (.*) [example.com...] [R]
RewriteCond %{HTTP_HOST} ^example\.com [NC,OR]
RewriteCond %{HTTP_HOST} ^(www\.)?parkeddomain\.com [NC,OR]
RewriteCond %{HTTP_HOST} ^(www\.)?parkeddomain\.com [NC,OR]
RewriteCond %{HTTP_HOST} ^(www\.)?parkeddomain\.com [NC,OR]
RewriteCond %{HTTP_HOST} ^(www\.)?parkeddomain\.com [NC,OR]
RewriteCond %{HTTP_HOST} ^(www\.)?parkeddomain\.com [NC,OR]
RewriteCond %{HTTP_HOST} ^(www\.)?parkeddomain\.org [NC,OR]
RewriteCond %{HTTP_HOST} ^(www\.)?parkeddomain\.com [NC]
RewriteRule (.*) http://www.example.com/$1 [R=301,L]