Could someone explain to me what can I do with .htaccess file, how to make this file and how to use it? I want to secure my web pages from which I have access to MySql database.
.htaccess Files
Apache allows for decentralized management of configuration via special files placed inside the web tree. The special files are usually called .htaccess, but any name can be specified in the AccessFileName directive. Directives placed in .htaccess files apply to the directory where you place the file, and all sub-directories. The .htaccess files follow the same syntax as the main configuration files. Since .htaccess files are read on every request, rather than only at server startup, changes made in these files take immediate effect.
To find which directives can be placed in .htaccess files, check the Context of the directive. The server administrator further controls what directives may be placed in .htaccess files by configuring the AllowOverride directive in the main configuration files.
I've been browsing around and managed to get to this interesting tutorial about .htaccess file: http://www.coolresources.com/article...d/htaccess.htm. mh8759, the tutorial can explain how you can change your default file from index.html to index.php. And jumpthru, I think the site is more user-friendly, too. Hope that link also helps others who want to know a bit more about the .htaccess file.
Bookmarks