Tagged: Htaccess

Redirection

There are times when it is necessary to delete or rename a web document. Generally, it is not a good idea to just delete pages from your site, as your pages are most likely...

More

Denying Access

If you examine your logs, you will occasionally find that your site is being hammered by a visitor or two. These are usually spiders (automated robots which examine web sites for various reasons) although...

More

Custom Error Pages

These are easy to create using the .htaccess file. Just include lines of the following format in your file. ErrorDocument 404 /missing.html This causes the file “missing.html” to be displayed whenever a 404 error...

More

MIME Types

You can use .htaccess to define your own MIME types. What this means is you can associated file types with actions to be performed. How do you use this? Let’s stay you want .DOC...

More

Restricting Access To A Directory

The most common usages of .htaccess is to restrict access to all of the files within a directory. You do this by setting up a simple text file as shown below. AuthUserFile /usr3/home/tommy/Webmaster/htaccess/.htpasswd AuthName...

More