category      articles    
 
Adsense
Adwords
Article
Blog
CMS
CSS Style
Datacenter
Design Graphics
Flash Animation
Internet Radio
Messenger
Programming
Provider
Search Engine
Security
Security Web
SEF
SEO
Software
Software Web
htaccess Useful

CUSTOM ERROR PAGE
The most common errors are 404 (Not Found) and 500 (Internal Server Error). Design your custom Web pages for these errors (you aren't limited to these errors, you can create an error page for each and every error). Add the following commands to your .htaccess file...

ErrorDocument 404 /404.html
ErrorDocument 500 /500.html


You can create your own 404.html and 500.html or you can change your own file.

ENABLING SSI
If you want to use SSI, but can't do so with your current Web host, you can change that with .htaccess file. The following lines tell the server that any file named .shtml should be parsed for server side commands...

AddType text/html .shtml
AddHandler server-parsed .shtml
Options Indexes FollowSymLinks Includes


If you don't care about the performance hit of having all .html files parsed for SSI, change the second line to...

AddHandler server-parsed .shtml .html


If you're going to keep SSI pages with the extension of .shtml, and you want to use SSI on your index pages, you need to add the following line to your .htaccess file...

DirectoryIndex index.shtml index.html


This allows a page named index.shtml to be your default page, and if that isn't found, index.html is loaded.

OTHER ARTICLES

AuthName directive for Apache

ClearModuleList directive

AcceptMutex directive for Apache

CoreDumpDirectory directive

AccessFileName directive for Apache

AuthAuthoritative directive

About ed at Linux

AllowOverride directive for Apache

Passing value from child window to parent

AccessConfig directive for Apache