Prev: Why am I getting an authentication prompt from IIS when no user is configured?
Next: SBS2003 and IIS https sites unable to start local
From: Julie on 5 Jun 2010 23:50 Hello, I could use a little help in setting up a website with some non-standard redirects. Seems like IIS (6) supports what I want, but it isn't working as I'd expect. I have my website set up as: www.somesite.com www.somesite.com/virtualdir1 www.somesite.com/virtualdir2 www.somesite.com/virtualdir3 What I'd like is to redirect www.somesite.com/ -> www.someothersite.com but leave www.somesite.com/virtualdir1 www.somesite.com/virtualdir2 www.somesite.com/virtualdir3 intact (not to redirect). I set the redirect home directory property for the parent, but it then applies to the virtual directories and everything is redirected. Is there another way through configuration that I'm missing? In the meantime I've resolved it by putting a redirect.asp and setting that as the default page in the www.somesite.com home directory. Thanks for any help! Jules
From: Ken Schaefer on 9 Jun 2010 10:55
IIS settings are hierarchical. So settings defined at a higher level will apply to lower levels (your VDirs) unless you override that setting at the lower level. Configure the redirect at the root, and then for each vDir configure the redirect setting to get content from the defined location. Cheers Ken http://www.adopenstatic.com/cs/blogs/ken "Julie" <jules(a)invalid.invalid> wrote in message news:gWEOn.92873$_84.81482(a)newsfe18.iad... > Hello, I could use a little help in setting up a website with some > non-standard redirects. Seems like IIS (6) supports what I want, but it > isn't working as I'd expect. > > I have my website set up as: > > www.somesite.com > > www.somesite.com/virtualdir1 > www.somesite.com/virtualdir2 > www.somesite.com/virtualdir3 > > What I'd like is to redirect > > www.somesite.com/ -> www.someothersite.com > > but leave > > www.somesite.com/virtualdir1 > www.somesite.com/virtualdir2 > www.somesite.com/virtualdir3 > > intact (not to redirect). > > I set the redirect home directory property for the parent, but it then > applies to the virtual directories and everything is redirected. Is there > another way through configuration that I'm missing? > > In the meantime I've resolved it by putting a redirect.asp and setting > that as the default page in the www.somesite.com home directory. > > Thanks for any help! > > Jules |