« Previous Next »

Thread: Folders without the use of trailing /

Last post 04-29-2009 4:39 PM by RobUK. 7 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (8 items)

Sort Posts:

  • 04-29-2009, 7:51 AM

    • RobUK
    • Not Ranked
    • Joined on 04-29-2009, 7:44 AM
    • Posts 10

    Folders without the use of trailing /

    Hi,

    I wonder if anyone can help, we have just migrated our systems from IIS5 (W2K) over to windows 2008, we have had a couple of problems, most of which we have sorted. The last problem we are having is to do with the way in which IIS7 treats folders.

    Previously i could browse to http://sitename/folder and the default.asp within that folder would work. Now i have to go to http://sitename/folder/ in order to achive the same thing. This may sould trivial but this is causing us some problems.

    Does anyone know of a workaround for this? I have try searching but it's difficult to know what to search for.... hence my post...... i'll continue googling (with my fingers corssed that someone out there can help!)

    Thanks

    Rob

  • 04-29-2009, 8:28 AM In reply to

    Re: Folders without the use of trailing /

    The trailing slash is added by your browser, not IIS.  The other possibility is you have a ,com in the path name or you have a wild card extension so that /folder is being processed as a file name.

    Jeff

    Look for Wrox's new book Professional IIS 7 in your local bookstore, or order now at Amazon.com
  • 04-29-2009, 8:43 AM In reply to

    • RobUK
    • Not Ranked
    • Joined on 04-29-2009, 7:44 AM
    • Posts 10

    Re: Folders without the use of trailing /

    Hi Jeff,

    Thanks for the reply.... before i migrated i could go to www.d2f.biz/gt4u and it would work fine.... now i have to go to www.d2f.biz/gt4u/ in order for it to work..... this is just a simple example that is publically available but i have several other internal apps which are presenting the same problem.... I haven't setup anything specific in IIS and therefore I am assuming (maybe wrongly) that it is something i need to setup!

    it's a classic ASP app if that makes any difference to the problem.

    Thanks

    Rob

  • 04-29-2009, 8:54 AM In reply to

    • RobUK
    • Not Ranked
    • Joined on 04-29-2009, 7:44 AM
    • Posts 10

    Re: Folders without the use of trailing /

    Hi Jeff,

    Thanks for the reply.

    Prior to migrating to IIS7 i could go to sitename/foldername and it would work fine.... i now have to make sure that i put the trailing /.

    I haven't really changed IIS from it's default installation, with the exception of enabling errors to the browser and changing script timeouts etc.

    Does the fact that our application is Classic ASP have anything to do with the problem?

    Thanks

    Rob

     

  • 04-29-2009, 9:17 AM In reply to

    • RobUK
    • Not Ranked
    • Joined on 04-29-2009, 7:44 AM
    • Posts 10

    Re: Folders without the use of trailing /

    Hi Jeff,

    In additon I have found the following article, which contradicts what is happening for me.....

    http://support.microsoft.com/kb/298408

    Thanks

    Rob

  • 04-29-2009, 1:23 PM In reply to

    • RobUK
    • Not Ranked
    • Joined on 04-29-2009, 7:44 AM
    • Posts 10

    Re: Folders without the use of trailing /

    ok, I have spent the best part of 2 days trying to fix this problem..... finally i seem to be getting somewhere....

    I have identified that i can do goto http://ip-address/folder and it works.... but if i put http://hostname/foldername it fails.

    I have also tested this as http://localhost/foldername which also works....... so the problem seems to be related to the host header.

    Does anyone have any ideas on how to overcome this?

    Thanks

    Rob

  • 04-29-2009, 1:23 PM In reply to

    • RobUK
    • Not Ranked
    • Joined on 04-29-2009, 7:44 AM
    • Posts 10

    Re: Folders without the use of trailing /

    ok, I have spent the best part of 2 days trying to fix this problem..... finally i seem to be getting somewhere....

    I have identified that i can do goto http://ip-address/folder and it works.... but if i put http://hostname/foldername it fails.

    I have also tested this as http://localhost/foldername which also works....... so the problem seems to be related to the host header.

    Does anyone have any ideas on how to overcome this?

    Thanks

    Rob

  • 04-29-2009, 4:39 PM In reply to

    • RobUK
    • Not Ranked
    • Joined on 04-29-2009, 7:44 AM
    • Posts 10

    Re: Folders without the use of trailing /

    I have found the problem, it has nothing to do with IIS, it is actually our Load Balancer.

     Thanks

    Rob

Page 1 of 1 (8 items)
Microsoft Communities