Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword or section
Like this
3Activity

Table Of Contents

0 of .
Results for:
No results containing your search query
P. 1
Apache Htaccess Referance

Apache Htaccess Referance

Ratings: (0)|Views: 102 |Likes:
Published by jwzumwalt
A developers reference for using Apache & htaccess. Many topics include a short 5 to 10 line snippet or program that demonstrates a concept.
A developers reference for using Apache & htaccess. Many topics include a short 5 to 10 line snippet or program that demonstrates a concept.

More info:

Published by: jwzumwalt on May 16, 2012
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

03/31/2013

pdf

text

original

 
 
This and many other developer references available athttp:/neatinfo.com/ 
by
d
 
ev_notes/_cheat-sheets 
an Zumwalt - NeatInfo.com
 
 Pg 2 of 45By: Jan Zumwalt - NeatInfo.com May 15, 2012Apache / Htaccess Reference Copyright © 2005-2012
Notes ______________________________________________________________  ______________________________________________________________  ______________________________________________________________  ______________________________________________________________  ______________________________________________________________  ______________________________________________________________  ______________________________________________________________  ______________________________________________________________  ______________________________________________________________  ______________________________________________________________  ______________________________________________________________  ______________________________________________________________  ______________________________________________________________  ______________________________________________________________  ______________________________________________________________  ______________________________________________________________  ______________________________________________________________  ______________________________________________________________  ______________________________________________________________  ______________________________________________________________  ______________________________________________________________  ______________________________________________________________  ______________________________________________________________  ______________________________________________________________  ______________________________________________________________  ______________________________________________________________  ______________________________________________________________  ______________________________________________________________  ______________________________________________________________  ______________________________________________________________ 
 
 Pg 3 of 45By: Jan Zumwalt - NeatInfo.com May 15, 2012Apache / Htaccess Reference Copyright © 2005-2012
Table of Contents
Section - 1 .htaccess tips and tricks .............................................................................................................. 6
 
Introduction to .htaccess.. .................................................................................................................................................... 6
 
.htaccess files are invisible
....................................................................................................................................................... 6
 
What
are 
.htaccess files anyway? ........................................................................................................................................ 7
 
Is .htaccess enabled? .......................................................................................................................................................... 7
 
Section - 2 What .htaccess can do ................................................................................................................ 8
 
Control access.. ................................................................................................................................................................... 8
 
Custom error documents...................................................................................................................................................... 8
 
Password protected directories.. .......................................................................................................................................... 9
 
Get better protection.. ........................................................................................................................................................ 10
 
500 error.. .......................................................................................................................................................................... 10
 
Groovy things to do with .htaccess.. .................................................................................................................................. 10
 
custom directory index files ................................................................................................................................................ 11
 
Save bandwidth with .htaccess! ......................................................................................................................................... 11
 
Hide and deny files.. .......................................................................................................................................................... 12
 
<FilesMatch> ..................................................................................................................................................................... 12
 
More stuff.. ......................................................................................................................................................................... 13
 
over to you.. ....................................................................................................................................................................... 14
 
Section - 3 htaccess ................................................................................................................................... 15
 
Apache Gzip Compression ................................................................................................................................................ 15
 
Another method ................................................................................................................................................................. 15
 
Rails Cache ........................................................................................................................................................................ 15
 
Redirect Not-WWW to WWW ............................................................................................................................................. 16
 
Section 4 from www to non-www .............................................................................................................. 17
 
Security Rules .................................................................................................................................................................... 17
 
Enable Directory Browsing ................................................................................................................................................. 17
 
Disable Directory Browsing ................................................................................................................................................ 17
 
Customize Error Messages ................................................................................................................................................ 17
 
Get SSI working with HTML/SHTML .................................................................................................................................. 18
 
Change Default Page (order is followed!) .......................................................................................................................... 18
 
Block Users from accessing the site .................................................................................................................................. 18
 
Allow only LAN users ......................................................................................................................................................... 18
 
Redirect Visitors to New Page/Directory ............................................................................................................................ 18
 
Block site from specific referrers ........................................................................................................................................ 18
 
Want to show a €œStealing is Bad€ message too? ........................................................................................................... 18
 
Stop .htaccess (or any other file) from being viewed ......................................................................................................... 18
 
Avoid the 500 Error ............................................................................................................................................................ 19
 
Grant CGI Access in a directory ......................................................................................................................................... 19
 
Password Protecting Directories ........................................................................................................................................ 19
 
Change Script Extensions .................................................................................................................................................. 19
 
Use MD5 Digests ............................................................................................................................................................... 19
 

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->