

|
 |
.htaccess Files
On this Page:
.htaccess Overview
An .htaccess file is a simple text file that tells Apache (the Web server) how to behave. .htaccess files can be used to specify a different home page, point to a custom error file,
password protect and much more.
Many of the ValueApps in your VDS Manager use .htaccess files, so it is important to make sure that you do not already have one in your Web directory before you upload over it.
FrontPage users are urged not to modify their .htaccess files.
TOP
Checking for an Existing .htaccess File
Since some of the ValueApps in your VDS Manager use .htaccess files, it is a good idea to make sure that you do not already have one in your Web directory. Otherwise, the
ValueApp may no longer work properly. FTP into your Web directory (www/htdocs). Look for a file called .htaccess.
Some FTP programs do not show .htaccess files. Look for "hidden files" in the instructions for your program, or use WSFTP which shows hidden files by default.
If you do have an .htaccess file, you can just add new lines at the end.
TOP
Creating a New .htaccess File
An .htaccess file is just a simple text file with the extension .htaccess. That is the whole name of the file. When creating your .htaccess file, do not use MicroSoft Word or Wordpad.
Your file may be corrupted.
Windows - Use Notepad or another basic text editor.
Macintosh - Use BBedit or another basic text editor.
- Open a new text document or your existing .htaccess file.
- Add your content.
- Save it as a plain text file, using ".htaccess" as the file name.
- Upload it to the directory that you want the .htaccess file to affect.
.htaccess files affect the directory that they are in as well as any directories within that directory unless there is an .htaccess file specifying a different behavior.
Make sure that you upload the file in ASCII instead of Binary. (Check the documents that came with your FTP software.)
TOP
Some Uses of .htaccess Files
Password Protecting Directories - Use the WebPassword ValueApp in your VDS Manager.
Specifying MIME Types - Click here for instructions.
TOP
|