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
PHP Quiz Questions and Answers
Viewed 4313 times since Mon, Jan 11, 2010
Embeddable Google Document Viewer For Websites
Viewed 1171 times since Fri, Mar 11, 2011
PHP Interview Questions with Answers - Part 1
Viewed 1417 times since Mon, Jan 11, 2010
Axiis - Open Source Data Visualization Framework
Viewed 1479 times since Thu, Jan 7, 2010
Google Maps jQuery Plugin
Viewed 1239 times since Thu, Jan 7, 2010
Geo-location Mapping With Google Maps API & PHP
Viewed 1621 times since Mon, Apr 4, 2011
13 Useful Javascript Syntax Highlighting Scripts
Viewed 1615 times since Mon, Jan 4, 2010
Tiny Flash MP3 Audio Player
Viewed 1163 times since Wed, Jan 6, 2010
What is Search Engine Optimization?
Viewed 1553 times since Fri, Jun 25, 2010