Thursday, October 21, 2010

I Want Another Instead of index.php!

By the convention, index.php is the name for the main web page. But you can change it anyway. You can edit the httpd.conf (I assumed you use Apache as webserver) located on your webserver configuration folder with your favourite text editor. Search for DirectoryIndex and add main_page_name.php as you wish. It can contain more than one name of main page with whitespace delimiter. The first one is the first priority. So if you have main.php index.php in the DirectoryIndex, the webserver will search for main.php first, if not exist then search for index.php to load. After you finish editing the configuration, save it and restart the webserver.

0 comments to “I Want Another Instead of index.php!”

Post a Comment