One directory per domain

Topics: User Forum
May 25, 2011 at 6:19 PM

Hi guys,

I'm trying to configure IIRF for my server and I can't make it work the way I need.

I have 2 domains in my server, let's say and

The physical path is:




First, I want to send the request to the correct virtual dir based on the domain:


RewriteCond  %{HTTP_HOST}  ^(?!www\.).*mydomain1\.com$
RedirectRule ^/(.*)$$1 [R=301]
RewriteRule ^/(.*)$       /mydomain1/$1 [L]

RewriteCond  %{HTTP_HOST}  ^(?!www\.).*mydomain2\.com$
RedirectRule ^/(.*)$$1 [R=301]
RewriteRule ^/(.*)$       /mydomain2/$1 [L]

Now, I want to have a specific set of rules for each subdir. For instance, one of than is a wordpress blog.

The problem is that no matter what I write on the file c:\web\mydomain1\IIRF.ini, nothing happens... :(

Any thoughts?

Thanks in advance. 


May 26, 2011 at 12:00 PM

First thing is to perform the steps described in the documentation under "Verifying and Troubleshooting installation".

Get something basic working first, then move on to fulfilling your specific requirements.