A comprehensive guide to the Apache Web Server's .htaccess configuraiton file. Includes full tutorial covering error documents, password protection, visitor blocking, hot linking prevention techniques and more.
Introduction to .htaccess .htaccess / General Guides
We introduced you to .htaccess and some of its useful features. In this part we will show you how to use the .htaccess file to implement some of these.
Introduction to .htaccess .htaccess / General Guides
.Htaccess is a small text file that control configuration aspects of an Apache web server. Most people are familiar with the .htaccess file in relation with the ability to restrict access to a directory via password protection. However, .htaccess can do a lot more than password protection. .Htaccess is an extremely powerful configuration tool that can customize the way your web site behaves and how your web server handles requests.
Editing .htaccess .htaccess / General Guides
.htaccess is an abbreviation for Hypertext Access; the default name for Apache's directory-level configuration file, which enables customizing the configuration directives i.e. the parameters defined in the main configuration file. However, the configuration directives need to be in .htaccess context and the user needs appropriate permissions to edit the file. The directives apply to the documents in all the directories and the subdirectories where the .htaccess file remains located. However, the other .htaccess files in the subdirectories may alter or nullify the effects of the ones in the parent directories.
Using .htaccess in your Web Project .htaccess / General Guides
Apache web servers allow the use of a text file called .htaccess to control certain behaviours within a website. The .htaccess file contains a list of brief instructions which are referred to by the web server prior to responding to a web request.
Create Search Engine Friendly URLs using .htaccess .htaccess / URL Rewrite
In this post, we will see how to use .htaccess to create search engine friendly URLs. Using .htaccess, mapping dynamic pages to static address is easy and this helps search engines to index the pages fast, effective and strong.