EDIT: Fixed post because now i want to redirect to non-www, not www. Hey, lets say my main page that I want people to access is http://example.com How can I redirect the people to that from: http://example.org http://example.net http://www.example.com http://www.example.org http://www.example.net Thanks a lot!
"http://example.org" and "http://example.net" point to the same host? I mean they are configured as parked domains, right?
In that case it's pretty simple : RewriteEngine On Options +FollowSymlinks RewriteBase / RewriteCond %{HTTP_HOST} ^(www\.)?example\.org [OR,NC] RewriteCond %{HTTP_HOST} ^(www\.)?example\.net [OR,NC] RewriteCond %{HTTP_HOST} ^www\.example\.com [NC] RewriteRule (.*) http://example.com/$1 [R=301,L] Code (markup): Untested, but it should work.