Skip to main content

Specifying a New Directory Index

Updated over a month ago

Set your ASP file as the default index

Only valid for legacy plans that support ASP.

For some customers that use ASP with their Developer's heaven or Multi-Resources plan, it is a common format to name the main website file as 'default.asp'. In order for the server to recognize your personalized index file as the main/first file to lookup for your website, you need to specify the file name in the .htaccess of your domain's directory

Prerequisites

  • Have a legacy plan that offers ASP

  • Access your cPanel interface

Task completion: 10 minutes

Expertise: Intermediate

How to do it?

  1. Log into your cPanel control panel

  2. Go to the File Manager.

  3. Browse to the /public_html/ directory

  4. Locate the .htaccess file, and click on the file image, not the name, so it becomes highlighted.

  5. Click on the Code Editor button on top.

  6. A new window/tab will appear in which you can enter new values just like any other text file. You will need to add a directive on the first line of the file. You can push down current data by hitting enter a couple of times to space out the file. You would enter the following line if your website's filename is 'default.aspx' :

DirectoryIndex default.aspx 

7. Save the file and you're done!

Related Articles

Did this answer your question?