Forum Moderators: phranque
this is the current htaccess snippet:
RewriteEngine on
RewriteCond %{HTTP_HOST} (.*)\.other-domain\.com
RewriteRule (.*) [main-domain.com...] [R=301]
order deny,allow
allow from .office-domain.com
deny from all
...
obviously the deny from all prevent the redirect from ever happening, so i am wondering if it is possible to exclude those coming to the other-domain.com from this condition?
RewriteEngine on
#
# redirect all requests for otherdomain to maindoamin
RewriteCond %{HTTP_HOST} \.other-domain\.com
RewriteRule (.*) http://www.main-domain.com/$1 [R=301,L]
#
# Deny all other access except for office-domain
RewriteCond %{REMOTE_HOST} !\.office-domain\.com
RewriteRule .* - [F]
Jim