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
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 Tips for Writing Better CSS Code
Viewed 1103 times since Fri, Nov 27, 2009
Making A Basic PHP Template System
Viewed 903 times since Tue, Dec 8, 2009
PHP Script For PDF to HTML Conversion
Viewed 4749 times since Tue, Dec 15, 2009
mbSlider - Highly Customizable Content Slider
Viewed 978 times since Mon, Jul 26, 2010
SlideDeck - Cool jQuery Slideshow Plugin
Viewed 1087 times since Thu, Feb 4, 2010
How can I change session timeout value?
Viewed 951 times since Tue, Apr 27, 2010
Web Usability Testing Tool - Clixpy
Viewed 1335 times since Sat, Jan 9, 2010
Open Source Web Analytics Framework
Viewed 872 times since Sat, Jan 30, 2010
Web Form Elements in PSD Format
Viewed 971 times since Sun, Dec 27, 2009
MENU