Bandwidth is the amount of data (information) being sent from the host server to the visitors computer. Each text letter, image, web page, and so forth is all really a bunch of data. A visitor comes to your web page, and all the data for displaying in their browser is transferred into their computer.
Bandwidth theft [...]
.htaccess
Some host servers may not be setup to handle specific file types such as mp3 or swf files. Using htaccess can fix this oversight. This oversight may actually be on purpose though, so check with the host administrator before doing this.
AddType application/x-shockwave-flash swf
AddType specified you are adding a new mime type (file type).
application/x-shockwave-flash is the [...]
If you have no index or default page in a specific directory, a visitor may be served with a full list of files that the directory contains. This is usually not a good idea as it could pose a security risk. To counter this effect, add this to the htaccess file.
Options -Indexes
Another way to turn [...]
There may be times when you upgrade a section on your site. This usually means the pages have moved to a new location. Meta tags, javascripts, and other methods can be a bit messy when it comes to redirection, so its htaccess to the rescue once again.
Redirect /OldDir/OldFile.html http://www.domainname.com/NewDir/NewFile.html
That example might appear to be on [...]
Most hosts will specify that your default starting page should be named index with whatever extension on it (usually .html). Using the abilities of htaccess, you may change this behaviour to specify any other page and extension you prefer.
DirectoryIndex filename.html
You may also list an assortment of filenames in case you have different directories and want [...]
This will allow you to cancel visitor access from a specific IP. An IP is a special code number that is assigned to each web surfer when they log onto the internet. For example, YOUR current IP address is :
78.166.214.184
Now when you are looking at putting a block to that in the htaccess, the coding [...]
If your host supports the use of htaccess but not the use of SSI, there is probably very good reason for it. Please check with your host before doing this procedure.
AddType text/html .shtml
AddHandler server-parsed .shtml
Options Indexes FollowSymLinks Includes
The first line states that pages with an extension of shtml are valid files.
The second line adds a [...]
Password protection is a main used feature of htaccess. It is also a bit more difficult to setup and use.
The first thing you have to do is create a new file. This one is called the .htpasswd file. (Notice the file name/extension resemblance to our current subject.) This type of file is created and saved [...]
The htaccess gives you the ability to redirect the visitor to different pages if they try to access an invalid page. You can use a custom error page for any type of error as long as you know its number. Example: 404 Page Not Found. The layout for this command is :
ErrorDocument errornumber /filename.html
So if [...]
FTP stands for File Transfer Protocol. It is a program that connects directly from your computer to the host computer where your internet files are stored.
Uploading files in an FTP program happens in one of three different modes. Auto, Binary and Ascii. When you are uploading an htaccess file, it must be done in Ascii [...]