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.
There are no comments for this article. Be the first to post a comment.
Security Code Security Code
Related Articles RSS Feed
Tiny Flash MP3 Audio Player
Viewed 1001 times since Wed, Jan 6, 2010
Featured Items Widget with jQuery
Viewed 1316 times since Sun, Dec 27, 2009
Free IP to Country, IP to City Database & API
Viewed 1346 times since Thu, Dec 31, 2009
jQuery Slider from a Select Element
Viewed 2436 times since Thu, Jan 14, 2010
SEO Poisoning - What are SEO Poisoning Attacks?
Viewed 1328 times since Mon, Apr 5, 2010
OpenCart - Open Source Shopping Cart
Viewed 1348 times since Fri, Jan 1, 2010
Speech Bubbles With Pure CSS3
Viewed 975 times since Fri, Mar 12, 2010
Google Skipfish - Web Application Security Scanner
Viewed 1120 times since Mon, Mar 22, 2010
Open Source Web Analytics Framework
Viewed 914 times since Sat, Jan 30, 2010