Portal Home > Knowledgebase > Web Hosting > HTML > How can I change the file name extension of my index page?


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




It is possible to name your default index page something other than index.html, index.cgi, index.php, etc., by using a directive in a special configuration file in your webspace. That fileis called '.htaccess' (a dot followed by 'htaccess'). The directive needed is
DirectoryIndex foo.html

That will make the default page (i.e., the file name that will be requested if there's no filename in the URL, www.domain.com/) 'foo.html'. The change will affect the directory the .htaccess file is placed in and all sub-directories.



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
What is the server path? (Views: 4976)
What is XML? (Views: 4644)

Powered by WHMCompleteSolution

Web Hosting - The World of Host
Language:

Contact Us

Sales
If you need to contact our sales team you can email them at: sales@theworldofhost.com
Marketing
If you need to contact our Marketing team you can email them at:  Markting@theworldofhost.com