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
Plupload - Multiple Files Upload Script
Viewed 1520 times since Tue, Feb 9, 2010
How can I change session timeout value?
Viewed 1110 times since Tue, Apr 27, 2010
Which hosting plans support IIS Mod-Rewrite?
Viewed 5256 times since Sat, Oct 10, 2009
How to prevent access to a specific file on server using htaccess?
Viewed 1243 times since Sun, Mar 14, 2010
Making A Basic PHP Template System
Viewed 1186 times since Tue, Dec 8, 2009
Lorem Ipsum Dolor Sit Amet
Viewed 1631 times since Tue, Oct 6, 2009
OpenCart - Open Source Shopping Cart
Viewed 1618 times since Fri, Jan 1, 2010
What is rel="nofollow" attribute?
Viewed 974 times since Thu, May 13, 2010
SlideDeck - Cool jQuery Slideshow Plugin
Viewed 1295 times since Thu, Feb 4, 2010