Tiger Technologies Technical Support

Can I use Apache ".htaccess" files?

Our servers support Apache .htaccess files. If you're experienced with them, you can use them to add password protection to Web pages, control MIME types, change "404 Not Found" messages, redirect visitors to other URLs, deny pages to certain IP addresses, and more. We also have mod_rewrite enabled to allow advanced URL rewriting.

Fully explaining how ".htaccess" files work is beyond the scope of these help pages, but details can be found in the Apache documentation.

We also have pages that explain how to use ".htaccess" files for several common tasks:

If ".htaccess" files are a bit much for you, but all you want to do is password-protect a directory, we have a simple checkbox interface that allows you to manage the password-protection feature of ".htaccess" files. This means you can password-protect directories on your Web site without learning how ".htaccess" files work.

Naming and formatting .htaccess files

One thing that first confuses people who use ".htaccess" files is the unusual name. The name of the file, when placed on our servers, must be exactly this:

.htaccess

... starting with a dot. Although the file is plain text and can be created in any text editor, the filename should not be ".htaccess.txt": it should just be ".htaccess". If your text editor saves it as ".htaccess.txt", be sure to rename it when you put it on the Web server.

Also, the file must be plain text, not an HTML document, Word document, RTF document, or any other format. Be sure your text editor saves the file as plain text.

Search


Related Topics

Apache Web Server

Protecting Web Pages With a Password

Enabling Directory Listings

Making Additional Directories Executable

Custom Error Pages

Using Different Names for Index Files

Using php_flag or php_value in .htaccess files

Redirecting to www.mysite.com