Hi,

What exactly are you trying to achieve?

At the moment, requests for
http://server/vdir
http://server/vdir/
http://server/vdir/vdir_redir.htm
would redirect to
http://server/vdir/start.html

Is that what you want to happen? Otherwise, can you explain more what "does not 
work" means?

Cheers
Ken

From: Joseph L. Casale [mailto:[email protected]]
Sent: Thursday, 24 November 2011 3:45 AM
To: NT System Admin Issues
Subject: IIS 7.5 Wildcard redirect and SSL

I have an app that modifies applicationHost.config and removes the default doc 
types and adds its own to a single html file it creates in its webroot for the 
virtual directory.

It then sets a wildcard redirect for that file to a url that a user should 
start with.

Problem is the method they use does not work unless a redirect on the default 
website (not just a virtual dir) is in place?

The code they add to applicationHost.config is:
    <location path="Default Web Site/vdir">
        <system.webServer>
            <httpRedirect enabled="true" exactDestination="true">
                <add wildcard="/vdir/vdir_redir.htm" 
destination="/vdir/start.html" />
            </httpRedirect>
            <defaultDocument>
                <files>
                    <clear />
                    <add value="Default.htm" />
                    <add value="Default.asp" />
                    <add value="index.htm" />
                    <add value="index.html" />
                    <add value="iisstart.htm" />
                    <clear />
                    <add value="vdir_redir.htm" />
                </files>
            </defaultDocument>
        </system.webServer>
    </location>

Anyone more experienced with IIS 7.5 know what this should look like?
Ultimately, I stumbled across this when trying to setup an http to https 
redirect and had some unexplainable issues.
Thanks,
jlc

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to 
[email protected]<mailto:[email protected]>
with the body: unsubscribe ntsysadmin

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to [email protected]
with the body: unsubscribe ntsysadmin

Reply via email to