-
Posted to
IIS7 - URL Rewrite Module
by
dbalasko
on
07-10-2009, 1:33 PM
That is unfortunately not possible, we have 5 sites on this server that need this subdomain url rewriting. So it should work on all of them or none.
-
Posted to
IIS7 - URL Rewrite Module
by
dbalasko
on
07-10-2009, 12:38 PM
Yes, it is a separate web site. There are 2 bindings:
www.domain.com
domain.com
So you are saying we have to add a binding for every of the 6.000 users we have at the moment?
user1.domain.com
user2.domain.com
...
Isn't there some other solution, something like *.domain.com?
-
Posted to
IIS7 - URL Rewrite Module
by
dbalasko
on
07-10-2009, 5:38 AM
I tried that but nothing gets written in the log. Other rules do, like this one for ex.
<rule name="Rewrite to article.aspx">
<match url="^article/([0-9]+)/([_0-9a-z-]+)" />
<action ...
-
Posted to
IIS7 - URL Rewrite Module
by
dbalasko
on
07-09-2009, 7:40 AM
If you check my first post in this topic, it was {R:1}. Anyway, I tried both but it still doesn't work.
-
Posted to
IIS7 - URL Rewrite Module
by
dbalasko
on
07-08-2009, 8:37 AM
I think I know why I allways got IIS welcome page, it was due to configuration of the DNS zone:
* A xxx.xxx.xxx.xxx
I removed that line, now I don't get IIS welcome page any more, but it still doesn't work with the above rule.
-
Posted to
IIS7 - URL Rewrite Module
by
dbalasko
on
07-08-2009, 6:56 AM
I'm back.
I am testing the whole thing on the production server now and I have some problems.
So the subdomain rule I am using is:
<rule name="subdomain">
<match url="([a-zA-Z]+)" ...
-
Posted to
IIS7 - URL Rewrite Module
by
dbalasko
on
05-13-2009, 2:03 PM
That's it, the rule "subdomain" from my 1. post was the problem.
I simply moved the "SubDomainPictures" rule up and marked "Stop processing of subsequent rules".
Works now, thank you very much.
-
Posted to
IIS7 - URL Rewrite Module
by
dbalasko
on
05-13-2009, 12:26 PM
No, it doesn't result in 404, it just isn't there.
-
Posted to
IIS7 - URL Rewrite Module
by
dbalasko
on
05-12-2009, 5:39 PM
I have tried it, but it doesn' work. I have tried with some modifications:
<rule name="SubDomainPictures" stopProcessing="false">
<match url="domain.com/pictures$" ...
-
Posted to
IIS7 - URL Rewrite Module
by
dbalasko
on
05-12-2009, 4:23 PM
It works now, thank you.
Now I still need a rule for http://user1.domain.com/pictures for example, it should be rewriten to
http://domain.com/user.aspx?pictures=1&user=user1
I tried with:
<rule name="SubDomainPictures" ...