Visual Studio'da bir web sitesi oluşturuyorum ve IIS kullanıyorum. Ancak, bunun gibi görünmesini isterim: localhost/app, localhost/app/index.aspx. Index.aspx'i benim uygulamamdaki başlangıç sayfam olarak tanımladım, ama işe yaramadı. web.configASP.NET web sayfamdaki (IIS) bir başlangıç sayfasını nasıl tanımlarım?
<system.webServer>
<defaultDocument>
<files>
<clear />
<add value="Login.aspx"/>
</files>
</defaultDocument>
</system.webServer>
veya IIS Yöneticisi'nde kod
void Session_Start(object sender, EventArgs e)
{
// Code that runs when a new session is started
Response.Redirect("~/Index.aspx");
}
Bu sorununuzu çözüyor mu? https://stackoverflow.com/questions/4208381/how-do-i-set-the-default-page-of-my-application-in-iis7 – rjdevereux
Yan not: seo dostu url'ler giderseniz çok daha kolay ASP.Net MVC ile ... –