I'd like to apply one rule if the host is domain.com and another if the host is any other
Fo example:
- Code: Select all
if HOST is domain.com
...
else
...
Thanks.
if HOST is domain.com
...
else
...
Options +FollowSymLinks
RewriteEngine On
# Just for example.com.
RewriteCond %{HTTP_HOST} ^(www\.)?example\.com$ [NC]
RewriteRule ^abc$ /def [QSA,L]
# Everything else.
RewriteRule ^abc$ /ghi [QSA,L]
# (!) Not example.com.
RewriteCond %{HTTP_HOST} !^(www\.)?example\.com$ [NC]
Users browsing this forum: No registered users and 28 guests