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.
Comments
There are no comments for this article. Be the first to post a comment.
Name
Email
Security Code Security Code
Related Articles RSS Feed
10 Most Popular JavaScript Frameworks
Viewed 1296 times since Thu, Jul 8, 2010
PHP For Android Project - Interview with Lead Developer
Viewed 1277 times since Mon, Jul 26, 2010
8 Basics of Regular Expressions
Viewed 1177 times since Mon, Mar 8, 2010
How to protect specific folder or disable directory browsing using htaccess?
Viewed 6379 times since Sun, Mar 14, 2010
jCart - Free PHP AJAX Shopping Cart
Viewed 1547 times since Sun, Jan 3, 2010
How do I setup and use SSH?
Viewed 1852 times since Thu, Oct 15, 2009
How to prevent access to a specific file on server using htaccess?
Viewed 1277 times since Sun, Mar 14, 2010
Free IP to Country, IP to City Database & API
Viewed 1584 times since Thu, Dec 31, 2009
IE6 CSS Fixer - Web-Based IE6 CSS Fix Tool
Viewed 1216 times since Thu, Dec 31, 2009
Facebook Style Chat Script - ArrowChat
Viewed 1328 times since Tue, Aug 3, 2010