Thursday, January 22, 2009

How to Use .htaccess file

In some network server (the most commonly used Apache). htaccess that (Hypertext Access) standard is the name of the directory-level configuration file. Ah. htaccess document is placed in a specific directory, and instructed in htaccess document applies to all directories and subdirectories adequate. Giving can customize the configuration requirements, in particular directory. The file name begins with the point, because the point files hidden Convention Unix as the operating system. A subset, Apache. htaccess syntax also supports other web server, such as Sun Java System Web Server and Zeus Web Server.


Certification authority


. htaccess file is used to determine the limits of safety for a specific directory, so that the file name "visit." That. htaccess often accompanied by a document. htpasswd files stored valid user name and password. Custom error page response to change, the server-side errors, such as HTTP 404 Not Found.


URL rewrites


Often used by the server. htaccess to rewrite the "ugly" URL, and so shorten beautiful.


Cache Control


. htaccess file to allow users to proxy cache server to control the use of the Web browser, in order to reduce bandwidth usage, server load, and that lag behind.