Curtis
Curtis

Reputation: 103388

Change built-in webserver to use 'Index.aspx' as default page

When I run my application on localhost I get a directory listing and have to click on 'Index.aspx' to view the page.

I have already set the Set As Start Page to 'Index.aspx', which means when I press 'F5', 'Index.aspx' is opened.

This works fine, but when navigating through the site, if there is a link, such as '/FolderName', I get a directory listing, and have to manually change the URL to '/FolderName/Index.aspx'.

I believe this is because by default, the default page is 'Default.aspx'?

Is it possible to change this to 'Index.aspx'? It would save me a lot of time!

Upvotes: 0

Views: 414

Answers (1)

musefan
musefan

Reputation: 48425

AFAIK this is not configurable. Your best option would be to rename all your index.aspx files to default.aspx. See the following link with an accepted answer to back up mine. Have fun with your renames :)

asp.net application default file Index.aspx

Upvotes: 2

Related Questions