How to write first htaccess
htaccess files can give you extra control to your server like blocking some ip, redirect to other page or site, generate custom error messages and many more. (For more info see the guide to .htaccess).
Writing your first htaccess file
Create a file that name: .htaccess
Don’t forget to put a dot before the htaccess then write this code below
DirectoryIndex default.php
Be sure that you have allowed to write a htaccess file contact your hosting administrator about it.
The DirectoryIndex is where your default page set. For example if you want your default page is your home.php scripts just change it into
DirectoryIndex home.php
We will posting more about tips and tricks in htaccess nextime


03. Dec, 2007












No comments yet... Be the first to leave a reply!