Apr 23, 2009 #1 ITPERSON07 IS-IT--Management Joined Apr 23, 2009 Messages 5 Location US I have an app that runs in a Virtual Directory. (c.Support (helpdesk software)) Is there a way to setup IIS so a user can just type http://www.domain.com instead of http://www.domain.com/virtualdirectory?
I have an app that runs in a Virtual Directory. (c.Support (helpdesk software)) Is there a way to setup IIS so a user can just type http://www.domain.com instead of http://www.domain.com/virtualdirectory?
Apr 24, 2009 1 #2 jshurst Programmer Joined Oct 27, 2004 Messages 1,158 Location US You could write a small script (javascript window.location) to do a redirect and set it as the default document on the website. Alternatively you could have an ISAPI filter, to interpret things for you, but that is harder. Here is an example of the redirection script (just save it under the root website and call it default.html (or whatever you want). Code: <html> <script type="text/javascript"> <!-- window.location = "[URL unfurl="true"]http://www.domain.com/virtualdirectory"[/URL] //--> </script> </html> Upvote 0 Downvote
You could write a small script (javascript window.location) to do a redirect and set it as the default document on the website. Alternatively you could have an ISAPI filter, to interpret things for you, but that is harder. Here is an example of the redirection script (just save it under the root website and call it default.html (or whatever you want). Code: <html> <script type="text/javascript"> <!-- window.location = "[URL unfurl="true"]http://www.domain.com/virtualdirectory"[/URL] //--> </script> </html>
Apr 27, 2009 #3 TechyMcSe2k Technical User Joined Dec 6, 2002 Messages 1,590 Location US Point them to an IIS server that you can change the default site to point to a "redirection to a URL" on the Home Directory tab and put in your http://www.domain.com/virtualdirectory" _______________________________________ I hope any help I give leads to great successes. MCSE, MCSA, MCTS, CCA, VCP, CCNA Upvote 0 Downvote
Point them to an IIS server that you can change the default site to point to a "redirection to a URL" on the Home Directory tab and put in your http://www.domain.com/virtualdirectory" _______________________________________ I hope any help I give leads to great successes. MCSE, MCSA, MCTS, CCA, VCP, CCNA
Apr 27, 2009 Thread starter #4 ITPERSON07 IS-IT--Management Joined Apr 23, 2009 Messages 5 Location US Script works great thanks! Upvote 0 Downvote
Apr 27, 2009 #5 TechyMcSe2k Technical User Joined Dec 6, 2002 Messages 1,590 Location US Star for jshurst! _______________________________________ I hope any help I give leads to great successes. MCSE, MCSA, MCTS, CCA, VCP, CCNA Upvote 0 Downvote
Star for jshurst! _______________________________________ I hope any help I give leads to great successes. MCSE, MCSA, MCTS, CCA, VCP, CCNA