Posts tagged .htaccess
What Apache Modules are enabled
Mar 19th
To find out what Apache modules are enabled all you need is two files.
First of all create a modules.shtml file and place the following in it:
<!--#printenv -->
Then create a .htaccess file if you don’t have one already or append the following lines to your existing .htaccess file.
Hotlink Protection with .htaccess
Feb 22nd
Hotlinking is when someone displays your images (or other media) on their website by directly linking to your server. This means they get to display your files while your bandwidth is being used.
Requirements
This article covers hotlink protection for the Apache web server only . If you are running IIS, much the same can be accomplished using commercial software such as ISAPI Rewrite.
You may have to contact your hosting service or just experiment to see if you are able to use the .htaccess file. The .htaccess file is simply a text file which contains directives (configuration settings) for the Apache web server. It is easy to create if you do not have one already, and it is generally located in the root directory of your website. The .htaccess file is domain specific so if you host multiple domain you will need to create multiple .htaccess files.
If you prefer to use the primary Apache configuration file (httpd.conf) for your server settings, everything in this tutorial can be accomplished much the same way. This article will cover the two main methods of hotlink prevention: Image replacement and "403 Forbidden" responses.
mod_deflate
Feb 16th
There is something called mod_deflate for Apache 2.x that helps to do auto compression. This is particularly helpful in reducing bandwidth of those nasty jquery plugins. mod_deflate has replaced Apache 1.3′s mod_gzip in Apache2. If you want to serve compressed files with Apache 1.3
Add the following the apache config file (eg. httpd.conf), the line might already be there but commented out #. If that is the case just remove the # symbol
LoadModule deflate_module modules/mod_deflate.so
.htaccess File (tips)
Dec 22nd
What is a .htaccess file
From apache.org![]()
.htaccess files (or “distributed configuration files”) provide a way to make configuration changes on a per-directory basis. A file, containing one or more configuration directives, is placed in a particular document directory, and the directives apply to that directory, and all subdirectories thereof.