Multiple domains

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

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:
www.domain1.com/default.aspx --> ~/default.aspx?domain=domain1
www.domain1.com/level2/default.aspx --> ~/level2.aspx?domain=domain1&sublevel2=level2
www.domain1.com/level2/level3/default.aspx --> ~/level3.aspx?domain=domain1&sublevel2=level2&sublevel3=level3

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

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

Regards,

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

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

But no logfile is created.


Any ideas?



Regards,

Jeroen
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="http://www.somesite.com/images/some_image.jpg" />

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:

domain1.com
domain2.com
domain3.com
etc...

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.

Regards,

Jeroen