Home » Categories » Multiple Categories

How can I change the file name extension of my index page?

Some software programs and systems require your website’s index page to have a different file name extension.  Instead of index.html, it may be index.php, index.cgi, or index.asp. Or it may be a different name altogether, such as homepage.html or site.php.

You can ensure that your website loads correctly by editing the .htaccess file in your public_html directory.  You can download this from your site in your File Manager, or you can create a new one in your text editor.How

To edit your .htaccess file:

  1. Open your .htaccess file in a text editor
  2. Enter in the following line:

DirectoryIndex [filename]
Where [filename] is the name of your index page.

  1. Save the .htaccess file
  2. Upload to your directory

This applies to the directory that you have uploaded your .htaccess file to, as well as any subdirectories contained within.

1 (1)
Article Rating (1 Votes)
Rate this article
  • Icon PDFExport to PDF
Related Articles
How do I cancel my services?
Added on Tue, Mar 3, 2015