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 Tips for Writing Better CSS Code
Viewed 1276 times since Fri, Nov 27, 2009
Use PHP Functions In JavaScript with PHP.JS Library
Viewed 1005 times since Fri, Jan 8, 2010
Open Source WYSIWYG Editor
Viewed 1412 times since Thu, Jan 7, 2010
What is rel="nofollow" attribute?
Viewed 925 times since Thu, May 13, 2010
Featured Items Widget with jQuery
Viewed 1438 times since Sun, Dec 27, 2009
13 Useful Javascript Syntax Highlighting Scripts
Viewed 1528 times since Mon, Jan 4, 2010
AeroSQL - Web Based MySQL Management
Viewed 1266 times since Wed, Feb 24, 2010
Free JavaScript Charts Library - JS Charts
Viewed 1156 times since Sun, Dec 13, 2009
8 Basics of Regular Expressions
Viewed 1097 times since Mon, Mar 8, 2010