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
8 Basics of Regular Expressions
Viewed 1111 times since Mon, Mar 8, 2010
TipTip - jQuery Tooltip Plugin
Viewed 1181 times since Thu, Jan 28, 2010
jQuery MultiSelect Plugin with ThemeRoller Support
Viewed 2069 times since Thu, Feb 4, 2010
How to redirect an old domain to a new domain using htaccess?
Viewed 907 times since Sun, Mar 14, 2010
Review of Mobile Web Application Frameworks
Viewed 1515 times since Mon, May 9, 2011
PHP Script For PDF to HTML Conversion
Viewed 5958 times since Tue, Dec 15, 2009
CSS Positioning - Absolute, Relative & Fixed
Viewed 1490 times since Thu, Dec 3, 2009
How to protect specific folder or disable directory browsing using htaccess?
Viewed 5726 times since Sun, Mar 14, 2010