Technical Stuff You Need To Know
How To Use the .htaccess File on Apache
There are probably quite a few technical things we need to know as budding web designers. This is just one of them, and applicable only if you host on Apache.
The .htaccess file has a number of important uses. It’s a little off-putting because in most FTP programs you can’t see the file unless you make some changes to the FTP program’s settings. Not being able to pin the file down is not a good start to using it.
But once you have cracked .htaccess’s tendency to invisibility, it is useful in the following areas:
- Specifying your own error pages when, for example someone tries to access a page on your web site that does not exist. If you could design a page that always displays in this case, you could neatly direct them to your home page or your FAQ or whatever you think appropriate.
- Using .htaccess you can password protect certain directories on your web server. So that forum you just set up, or those files you want to make available for download will only be accessible if the visitor knows the password as well as the URL.
- You can also use .htaccess to prevent people from bandwidth stealing by hotlinking to your images.
All the techniques you need are explained in the javascriptkit site.
This entry was posted on Thursday, August 14th, 2008 at 6:26 pm and is filed under Web Server. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

