EE-WBC .htaccess Programming Examples
.htaccess files, features can be combined
enable more default document names (the default is index.html)
enable on page not found error display another page
disable directory browsing when no index.html
enhance directory browsing when no index.html
enable running CGI scripts for a directory
enable server side includes for a directory
enable .php extension for server side scripting
restrict access to only from particular locations - ver. 1
restrict access to only from particular locations - ver. 2
restrict access by password protection
redirect a Web site or its portion
prevent others from linking to your images
make another Web site a portion of your Web site
to be placed in httpd.conf (can be dangerous)
Source code listings were prepared using
Code2HTML
, courtesy of Peter Palfrader.