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 www.mydomain1.com and www.mydomain2.com

The physical path is:

c:\web

c:\web\mydomain1

c:\web\mydomain2

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

c:\web\IIRF.ini

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

RewriteCond  %{HTTP_HOST}  ^(?!www\.).*mydomain2\.com$
RedirectRule ^/(.*)$       http://www.mydomain2.com/$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. 

 

Coordinator
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.