![]() |
A directory's defauly page is usually index.html, index.htm, or index.php. Therefore, when a visitors goes to www.domain.com they are automatically redirected to www.domain.com/index.html.
With .htaccess the default directory page can be changed.
Open your .htaccess file or create a new one. (Please see the .htaccess tutorial to learn how to make one.) Add the following to the next available line. (You can change filename.html to any page you'd like to use.)
DirectoryIndex filename.html(The above code would cause filename.html to be the default page of your site, so http://www.domain.com would not go to index.html, but to filename.html)
Finally, save the .htaccess file and upload it to the directory you would like to affect. Remember that it will affect all sub folders.
Related Articles
- Email, Virtual Domains SolutionA solution for implementing virtual domains using Exim, Courier-IMAP and mMySQL.
- How The Yahoo! Directory Really Ranks Its Directory ListingsIn this article, I show you how the Yahoo! Directory ranks its listings, so you can use this knowledge to get higher rankings. First you must ...
- PHP NavigationUsing PHP, you can have your entire site layout in only one file. If you dont know what this tutorial is, read it anyway. I wanted to learn how to do something like this for about 2 years. Nothing worked better than PHP Navigation. Not frames, not anything.
- ASP.NET in Dreamweaver 8In this article you will be able to use the new features of dreamweaver 8 to connect to a SQL database and return the results to a datagrid.
- CSS Cursors - How To Use ThemOne thing that CSS allows us to use for screen presentation are alternate cursors. This is not the idea of downloading or forcing a download of a cursor, as was done in the past (though that is possible as well), but instead, we use several built in concept cursors.
- IP Banning1. Make a new text file and name it .htaccess or open one you already have.
2. Find out the persons IP address and substitute it for 000.000.000.000.
To deny access..
deny from 000.000.000.000
To allow access..
allow from 000.000.000.000
To ban everyone..
deny from all
To add mor.... - PHP Navigation and Connecting to a MySQL DatabasePHP Navigation and Connecting to a MySQL Database
- Introduction to .htaccess.htaccess is a Unix/Linux based file for Apache web servers that allow you to change access permissions and many other things for files on your web server.
To make a .htaccess file, open up an html editor, preferably notepad, and enter your commands(each on a seperate line). When saving your file... - Prevent Directory ListingWhenever you have folders with large amounts of files or important administration files, it is essential to prevent directory listings, otherwise all of the files in the folder will be listed to anyone who wants to see them, including hackers. When hackers can find an administration file, it makes t...
- Creating Your Own FaviconYou crave attention but lack distinction? Consider using a personalized favicon to draw people to your website from Internet Explorers Favorites menu.

