You cal also use iis rewriter --Tigran
On Nov 27, 2011, at 9:20 PM, Steve Kradel <[email protected]> wrote: > Aye, the question is quite confusing in light of the subject matter. > Seems like one would just want to make "start.html" the top-priority > default document in the virtual directory where the app lives. > > One might even go a step further and create a redirection rule or > default document at the root of the website to send people to the app. > > I am not a fan of web apps that tinker with applicationHost.config > without a compelling reason... > > For HTTP to HTTPS redirect, I usually just require SSL on the app and > customize the appropriate 401.x response document. > > --Steve > > On Sun, Nov 27, 2011 at 11:45 PM, Ken Schaefer <[email protected]> wrote: >> 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] > 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
