.htaccess

.htaccess files
.htaccess files are used to customize a web site on an Apache server. Although .htaccess is only a file, it can change settings on the servers and allow you to do many different things, the most popular being able to have your own custom 404 error pages. .htaccess isn't difficult to use and is really just made up of a few simple instructions in a text file. This tutorial explains .htaccess and gives specific examples on how to write .htaccess files. Here is another tutorial.


Uses for an .htaccess file
  • Create custom error pages
  • Redirect to files or directories
  • Change default directory pages
  • Prevent directory browsing
  • Allow SSI in .html files
  • Prevent specific IP addresses from accessing pages
  • Prevent links to you images
  • Prevent bots from scanning site
  • User authentication
  • Adding MIME types
 

701 W. Broad St., Box 843059
Richmond, VA 23284
(804) 828-1177
RSS

 
VCU