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
Free Visualization Components For Flex (AS3)
Viewed 539 times since Sun, Jan 3, 2010
Featured Items Widget with jQuery
Viewed 924 times since Sun, Dec 27, 2009
jDigiClock - HTC Hero Style jQuery Digital Clock
Viewed 699 times since Tue, Feb 16, 2010
Advanced Backup System - PHP Backup Script
Viewed 763 times since Wed, Jul 28, 2010
Web Form Elements in PSD Format
Viewed 665 times since Sun, Dec 27, 2009
Meerkat - jQuery Plugin for Promotional Content
Viewed 629 times since Tue, Dec 29, 2009
Google Web Toolkit - Version 2 Released
Viewed 705 times since Tue, Dec 15, 2009
ICEpdf - Open Source Java PDF Library
Viewed 926 times since Wed, Jan 6, 2010
PHP Sound Captcha
Viewed 4703 times since Sun, Apr 11, 2010
PHP Questions for Interview with Answers
Viewed 924 times since Wed, Feb 24, 2010
MENU