1) http://www.domain.com/ -> REDIRECT -> http://www.domain2.com/
2) https://www.domain.com/ -> REDIRECT -> http:/www.domain2.com/
3) http://domain.com/ -> REDIRECT -> http://www.domain2.com/
3) https://domain.com/ -> REDIRECT -> http://www.domain2.com/
I have an application running at https://sub.domain.com/admin/ and
http://sub.domain.com/
I don't want it to redirect to http://www.domain2.com/ if either is matched.
There are MANY sub domains and only ONE domain.
I have the following code:
- Code: Select all
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} !^(www\.)?form25.com/$ [NC]
RewriteRule .* http://www.marketpathsolutions.com/ [L]
I am new to this and confused. Just looking for some pointers and or good code that can handle all cases.