How to Change the default Homepage Address from index.php to another

June 15th, 2011 by Regaz

This in case you want to change your default homepage address from index.php to homepage.php:
 You have several Alternatives:

a) On the Root of your Site Create or Edit .htaccess file Inserting:

DirectoryIndex homepage.php

If you are in a shared Hosting this will be the only Feasible alternative.

b) Open Apache httpd.conf and in the section Insert:

DirectoryIndex homepage.php

c) Set up mod_rewrite to redirect index.php to homepage.php

(If you are Working on Localhost After you will need to Restart the Apache Server


The DirectoryIndex Apache directive simply give an Ordered List of the Default Addresses, so if you want you can include Multiple Possibilities like for Example:
DirectoriIndex homepage.php homepage.html index.php index.html
Apache will try to Find the First Existing one and after will Display that.

(Visited 1 times, 1 visits today)
Share on Tumblr

Tags: , ,

No Responses to “How to Change the default Homepage Address from index.php to another”

  1. Thanks a lot for sharing the article on cash. That's a awesome article. I enjoyed the article a lot while reading. Thanks for sharing such a wonderful article.

  2. Anonymous says:

    Thank you,you are genius man

  3. Very fabulous post! Thanks for sharing this great stuff. Keep sharing more informative stuff like that.

  4. thanks for good post. I was facing some issue.