Differenet domains and some rules

Topics: User Forum
Mar 31, 2009 at 12:30 PM
Edited Mar 31, 2009 at 12:32 PM
Hi :)

Thanks for great add-on.
I installed IIRf on IIS on web server root, for all domains, and its dedicated server so i have remote access.
Currently I have only 2 domain configured on server and can't separate rules.
Could someone help me with how to separate rules?

RewriteLog C:\IIRFLog\iirfLog.out
RewriteLogLevel 3

# DOMAIN 1 - Wordpress
RewriteCond %{HTTP_HOST} ^DOMAIN1.com
RewriteRule ^/(?!index.php)(?!wp-)(.*)$    /index.php/$1

RewriteEngine On

# DOMAIN 2 - CMS Made Simple
RewriteCond %{HTTP_HOST} ^DOMAIN2.com
#RewriteRule ^/(.*.gif|.*.png|.*.jpg|.*.pdf|.*.js|.*.css) $1 [I,L]
#RewriteRule ^/stylesheet.php$   - [L]
#RewriteRule ^/(.+)$ /index.php\?page=$1 [I,L]

For DOMAIN1 it works like charm, but if I uncomment rule for DOMAIN2 for pictures, js, and css, it applies also for DOMAIN1 where Wordpress can't find any picture, css or JS?!
How can i separate rules so that rules will be applied only for domain it supposed to be?

And also how can i remove rewrite condition for css file like: http://DOMAIN2.com/stylesheet.php?cssid=54&mediatype=all
You can see what i have done under DOMAIN2, 2.rule but thats not working?

Sorry for my poor english but you will understand what i want to say
Thanks in advance