Category Articles

Site Articles

Error Documents

These are very useful and allow you to specify a page that the user goes to if there is an error. The most useful way you could use this is with the “404 Page Not Found” error. You can provide…

Preventing hot linking of images

To stop people from using your images on their site while the image is still on your site (stealing valuable bandwidth), add the following to the . htaccess file: RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://(www\.)?mydomain.com/.*$ [NC] RewriteRule \.(gif|jpg)$…

htaccess Password Protection

You can protect a specific directory with the . htaccess file by doing the following: 1. Create a new file called . htpasswd in the same way as we created the . htaccess file above. 2. The . htpasswd file…