PDA

View Full Version : How to Change Your Linux Site's Default Page



jakeh
April 3rd, 2010, 06:54 PM
When a visitor browses to your site, our servers load the 'index' page by default (eg. index.htm, index.html, index.php). To change this for sites on our Linux servers, do the following:


Log into your cPanel Account
Click the "File Manager" icon, and choose "Web Root" in the popup that appears. Click "Go"
Click the "New File" icon at the top left of the "File Manager"
Type ".htaccess" as the file name and click "Create New File"
Your new file should now appear in the "File Manager". Click the filename, then click the "Edit" button at the top. (If you see a message asking about encoding, just click the "edit" button in this message)
Now that you are editing the new ".htaccess" file, insert the following line of text:

DirectoryIndex portfolio.html

Where "portfolio.html" is the name of your new default page.
Click the "Save Changes" button in the editor window, and your site will start using its new default page