Multiple domains

Topics: Developer Forum, User Forum
Apr 16, 2007 at 7:57 PM
Edited Apr 16, 2007 at 7:58 PM

I'm planning to use IIRF in my project to support multiple domains.
The idea is to create one ASP.Net application that serves about 10 domains.
In the webapplication I want the domain to be in the querystring.
Thus: --> ~/default.aspx?domain=domain1 --> ~/level2.aspx?domain=domain1&sublevel2=level2 --> ~/level3.aspx?domain=domain1&sublevel2=level2&sublevel3=level3

Is this possible with IIRF?
And is it stable with caching and other features?

I'm using at the moment and it is causing problems with events, postbacks and caching.


Apr 18, 2007 at 6:21 AM
Edited Apr 18, 2007 at 8:55 AM

I declared logging:
RewriteLogLevel 3
RewriteLog = d:\temp\iirf

But no logfile is created.

Any ideas?


Apr 18, 2007 at 2:22 PM
I'm responding to your original post...before your edit...

Regarding your images, css, js...make sure all references are relative and not absolute. So don't link an image like this:
<img src="" />

You should do it like this:
<img src="/images/some_image.jpg" />

I'm also not sure why you'd want to utilize IIRF to do your domain switching...

And easier way would be to apply all the domains as host headers to your IIS server then when the request comes in to default.aspx capture the SeverVariable HTTP_HOST and grab your content after that.

So if you have 10 domains:

You'd have one IIS site setup to respond to all 10 domains.

After that, you'd first capture what domain the visitor came in on via HTTP_HOST, put it in a variable or session variable and carry on from there.

I'd then use IIRF to make friendly URLs.
Apr 18, 2007 at 4:14 PM
Thanks for your reply!

It makes sense to capture the HTTP_POST in the webapplication itself.

I spend all day making an existing ASP.NET 2.0 application work.
It almost succeeded.
However I have some problems with ImageButtons from ASP.NET 2.0.
They do not operate as expected.
I am going to look into that later.