Forum Moderators: open

Message Too Old, No Replies

index.html to index.asp

problem switching

         

dvduval

3:36 am on Apr 16, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member




I’ve been busy converting my website's static pages to ASP pages. I ran into one problem. Currently there is an index.html and an index.asp in the www directory. When I delete the index.html file, I would expect the site to default to index.asp, but instead I get an error message.
Directory Listing Denied
This Virtual Directory does not allow contents to be listed.

This is the procedure I’ve used for PHP sites, but maybe there is a different rule I’m not familiar with.

marcs

3:45 am on Apr 16, 2003 (gmt 0)

10+ Year Member



The web server must not recognise index.asp as an "index" file.

If you have root access on the machine, edit httpd.conf to add index.asp to DirectoryIndex. If you don't, use a .htaccess file and add:

DirectoryIndex index.asp

or

DirectoryIndex index.asp index.html

in case you have subdirs which still use index.html.

marcs

3:47 am on Apr 16, 2003 (gmt 0)

10+ Year Member



Just noticed this was in 'MicroSoft Related', so this may not work for you. The concept remains the same.

BlobFisk

10:09 am on Apr 16, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



marcs is correct - it seems that your server is not configured to handle index.asp as the default page. Try using default.asp and see if that makes a difference - this is generally the default standard for asp index pages.

Alternatively, you can take marcs advice and change the server setting, which is done in the IIS Managemenet console for your site.

dvduval

3:29 pm on Apr 16, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



THe IIS configuration needed to be changed.
Thanks for your help.