Portal Home > Knowledgebase > Web Hosting > .htaccess > Alternative Index Files


Alternative Index Files




At times, people do not want to use index.php or index.html as their index page. What if you needed article.php as the new index page? You can edit your .htaccess file to make it as that. Add this line to your .htaccess file to do such that

 

DictionaryIndex article.php

 

With this line added, it will set for the article.php as the index, if it exists. Also, if you want it as a different name, edit the 'article' name or 'php' extention as needed to fit your needs and the website you are building.



Was this answer helpful?

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

Also Read

Powered by WHMCompleteSolution