|
Author: Jenny Nguyen
|
|
Find out how you can set the default page of a domain by selecting any page or URL with PHP. Normally when you have a new website the default home page would be somethinglike index.html, index.php, default.html, default.aspx or something like that. However there will be time you would like to have something else as a default homepage. For example you can have pageinfo.php as a homepage, and when someone goes to the www.example.com it would automatically serve the the pageinfo.php as a default page. Here's how to do just that: 1. Connect to the hosting server with your username and password. 2. Now access the .htaccess file. 3. Then edit the file and put in the line "DirectoryIndex pageinfo.php" to the end of the file. 4. Now save the file and make sure the file on the server is updated. Did you like this tip? Note: If .htaccess does not exist you could create one.
|