Linux & Windows Web Hosting

  

Affordable Reliable Web Hosting Services

Sign-up Now!

.htaccess Help
.HTACCESS is a powerful file to use on the servers to reconfigure various server options including but not limited to adding MIME types, creating error documents, changing the default web page type and many many more features.

Go to http://httpd.apache.org/docs/howto/htaccess.html for help with the .HTACCESS file for documentation and examples.

Here are a few common lines of code for the .HTACCESS file. If the file does not exist in the folder you are working with, create it and add the code you need. If its already there you should only modify the lines of code you need to add or modify. Changing or removing current settings may affect the site adversely depending on what you have set thru our WebSiteOS.

NOTE: Lines of code may wrap.

Custom 404 error document
ErrorDocument 404 http://yourdomain.com/404.htm

Custom default index extensions
DirectoryIndex index.html index.asp default.asp default.html

Add MIME types
AddType text/example .exm

Add MIME types to stream MP3 files
AddType audio/mpeg .mp3
AddType audio/x-mpegurl .m3u

Add MIME types to stream Real Audio files
AddType audio/x-pn-realaudio .ram .rm
AddType audio/x-pn-realaudio-plugin .rpm
AddType audio/x-realaudio .ra

Add MIME types to enable WAP
AddType text/vnd.wap.wml     .wml
AddType text/vnd.wap.wmlscript     .wmls
AddType application/vnd.wap.wmlc     .wmlc
AddType application/vnd.wap.wmlscriptc     .wmlsc
AddType image/vnd.wap.wbmp     .wbmp

Turn OFF Case Sensitivity
CaseInsensitive On

Turn ON Directory Listings
Options +Indexes
 General Information

 .htaccess Help

 Email Settings

 Spam Filtering

 Database Help

 Windows Services
    ASP
    ASP.NET