The situation is the follow:
I have this root domain:
- Code: Select all
www.domain.org
It is associated with the hosting account. Every single domain I add to the account is added as an addon, appearing both as
- Code: Select all
www.other.domain.org
- Code: Select all
www.other.com
- Code: Select all
www.domain.org
- Code: Select all
www.domain2.net
- Code: Select all
www.domain.org/index.html
- Code: Select all
domain.org/something.html
- Code: Select all
domain.net
Again, using a simple redirect, pages like www.other.domain.org/index.html are redirected too and that is not what I want.
Until now this code manages to redirect ONLY the main www.domain.org to www.domain.net. How can I redirect all of the pages permantly?
- Code: Select all
RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www.)?domain.org$
RewriteRule ^(/)?$ http://domain2.net [L]
Any help, please?
Thanks for reading.