Article Diary - General Knowledge Digest

How to change default web page using htaccess?

Use the following htaccess code to change the default web page or to set a custom webpage as the default page for your website. For example in the code below, the default page is set as about.html instead of index.html

# serve alternate default index page

DirectoryIndex about.html
3 (1)
Article Rating (1 Votes)
Rate this article
Attached Files
There are no attachments for this article.
There are no comments for this article. Be the first to post a comment.
Security Code Security Code
Related Articles RSS Feed
Stylish Cross-Browser CSS Buttons - Simply-Buttons v2
Viewed 1062 times since Thu, Nov 12, 2009
File Upload in PHP - PHP File Upload Script
Viewed 2268 times since Thu, Nov 5, 2009
Free Under Construction Coming Soon Template
Viewed 1940 times since Sat, Mar 12, 2011
Lorem Ipsum Dolor Sit Amet
Viewed 1438 times since Tue, Oct 6, 2009
Free Visualization Components For Flex (AS3)
Viewed 921 times since Sun, Jan 3, 2010
Open Source Web Analytics Framework
Viewed 942 times since Sat, Jan 30, 2010
Admin Skins - Constellation Complete Admin Skin
Viewed 1309 times since Thu, Aug 12, 2010
Pastie - Pastebin to Share Source Code with Syntax Highlighting
Viewed 1065 times since Mon, Jan 11, 2010