简体   繁体   中英

IIS 5.1 not resolving Virtual Directory

I set up a Virtual Directory called 'Site'. I browse to http://localhost/Site/default.aspx , and it loads. However, when I click on anything on the page, say Page1.aspx, it goes to http://localhost/Page1.aspx instead of the expected http://localhost/Site/Page1.aspx .

In the source file, the relative paths are coded as '/Page1.aspx' , for example, and it has worked in the past.

I'm using Win XP Pro SP3 and IIS 5.1. Any ideas on what might be causing this behavior?

The correct home page URL in this case should be:

http://localhost/default.aspx

What happens when you try that?

尝试将虚拟目录转换为应用程序。

我发现最好的解决方法是使用此小型IIS实用程序IISAdmin.NET(可从http://iisadmin.codeplex.com找到)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM