Animation


DIVs vs. Tables

Float Layouts

Inline Blocks

Block Layouts


Centering

Split Bkgrd

Graphic Borders

Horizontal Lists

CSS Colors


.htaccess

Block IPs

Down for Maintenance

Page Redirect

Custom Error Pages


Escaping query strings

PNG transparency

Google App testing

Flash Optimizing

Avoid AS Statics

SEO Optimization



Backup your original .htaccess file

It is vital that you back up the original .htaccess file that is on your site. Then edit the original file to change or add what you need. Do not change or remove anything you don't understand. This can disable your web site if a mistake is made. But fortunately you'll have a backup of the original should you need to recover.

The default error messages given by the web server to visitors are, by default, on a plain white page. With .htaccess it is very easy to show visitors custom error pages that match the theme and style of your website.

Backup your original .htaccess file

It is vital that you back up the original .htaccess file that is on your site. Then edit the original file to change or add what you need. Do not change or remove anything you don't understand. This can disable your web site if a mistake is made. But fortunately you'll have a backup of the original should you need to recover.

Example .htaccess file

ErrorDocument 403 /down_for_maintenance.html
ErrorDocument 404 /page_not_found.html
ErrorDocument 500 /general_error.html
ErrorDocument 503 /server_too_busy.html

Creating pages that fit your theme and instruct visitors encountering problems creates a better user experience. (You may have noticed that this site doesn't provide those pages because I'd rather add content to the site than make it look pretty).



Did you find this article userful for your website?
If so, why not provide a link to it? Just copy the following to your web page:

<a href='http://upwithabang.com/articles/htaccess-tutorial.html'>htaccess tutorials</a>