.htaccess file generator
Sometimes it's easier online
Default Page
What page to load if the user doesn't specify any (usually index.html or index.php)
Directory Index
Can specify multiple in a list (ie index.php index.html index.htm default.htm)
Options
execute CGI programs
File Extensions
.cgi
.pl
.exe
.sh
Execution of CGI scripts using mod_cgi is permitted.
include files (SSI)
or without #exec
file extension
Server-side includes provided by mod_include are permitted.
Follow Symbolic Links
The server will follow symbolic links in this directory.
Follow Symbolic Links if owner matches
The server will only follow symbolic links for which the target file or directory is owned by the same user id as the link.
Indexes
If a URL which maps to a directory is requested, and there is no DirectoryIndex (e.g., index.html) in that directory, then mod_autoindex will return a formatted listing of the directory.
Content Negotiation (MultiViews)
Content negotiated "MultiViews" are allowed using mod_negotiation.
Force SSL
SSL Domain
Force HTTP requests to redirect HTTPS
Authentication
Deny by default
Require valid username
All if user OR ip matches
Area Name
User Authentication
path to users file
Group Authentication
path to groups file
Allowed Users
Allowed Groups
Allowed IP addresses (wildcards and names allowed)
Blocked IP addresses (wildcards and names allowed)
Additional Mime Types
fs
vbd
asn asz asd
pqi
psr
tsp
exe
fml ofml
pfr
frl
spl
gz tgz
stk
ips
ptlk
lit
hqx
mbd
mdb
mfp
msi
msm
pot pps ppt ppz
doc
n2p
bat BAT bin class dbf lha lzh lzx sjf
seq
oda
axs
zpa
pdf
pls
ai eps ps
shw
qrt
rtc
rtf
smil smi sml
smp
dst
talk
tbk
123
mpp
pbd
wmlc
wmlsc
vmd
vmf
vpa
wpd
wri
wid
rrf
wis
ins
tmv
arj
asp
aab
aam aas
bcpio
vcd
cdr
chat
cnc
coda page
z
con
cpio
pqf
csh
cu csm
dcr dir dxr swa
vms
vmi
dvi
evy
ebk
gtar
hdf
erf
map
php php4
php3
ica
uin
ipx
ips
js
latex
bin
mif
mpl mpire
wmv
adr
wlt
nc cdf
npx
aos
nsc
pgp
qtl
sh
shar
swf
spr sprite
sit
sca
sv4cpio
sv4crc
tar
tcl
tex
texinfo texi
tlk
t tr roff
man
me
ms
alt
che
ustar
src
lwp
cacert
ecert email
scert servercert
ucert usercert
zip
xls
xlt
zip
au snd
es
gsm gsd
rmf
tsi
vox
wtx
aif aiff aifc
cht dus
mid midi
mp2 mp3
m3u
wma
ram ra rm
rpm
stream
rmf
vqf vql
vqe
wav
wtx
mol
pdb
dwf
ivr
cod
cpi
fif
gif
ief
jpeg jpg jpe
png
rip
svh
tiff tif
mcf
svf dwg dxf
wbmp
xif
wi
clp CLP
ras
cmx
emf EMF
etf
fpx
fh5 fh4 fhc
cut
jps
dsf
bmp
pnm
pbm
pgm
ppm
qti
rgb
wmf WMF
xbm
xpm
xwd
dig
push
wan waf
ccs
vcs
css
dss
htm html
lsp
pgr
htc
txt
rtx
tsv
wml
wmls
hdml
etx
talk spc
xml
xsl
u98
afl
mpeg mpg mpe
qt mov
viv vivo
asf asx
avi
movie
vgm vgx xdr
vgp
vts vtts
3dmf 3dm qd3d qd3
svr
wrl wrz
vrt
wax
wvx
wm
wmx
wmz
wmd
File extension to mime type mappings are in this format
mime/type ext
for example
text/html html
application/x-gzip gz
Protect System Files
Protect .htaccess and user and group files
Additional files to protect
File Cache Control
Specify File Cache Time
How often will the client/proxy refresh the file
Modification Based
Expire all clients/proxies at the same time
Cache Time
1 Year
6 Months
3 Months
1 Month
1 Week
1 Day
1 Hour
1 Minutes
ModRewrite
Protect Media Files
On:
Allowed Domain:
Check the referrer domain for images, music, and sound files
Block E-mail Harvesters
On:
Page to server:
Deny access to e-mail harvesting programs.
Time-Dependant Page
On:
Page Name :
Daytime Starts :
Daytime Ends :
Daytime Page :
Nighttime Page :
Serve pages depending on time of day
Virtual DNS to Folder
On:
Base Domain:
Path to Folders:
Rewrite Virtual Subdomains to subfolders. Ie: rewrite www.foo.domain.com to www.domain.com/subdomains/foo. Useful for virtual user domains.
Redirect Failing URLs To Other Webserver
On:
Secondary Server:
When a URL is invalid, or would produce an error, redirect to a secondary server.
Rewrite Condition
Rewrite Page
Page Name :
Page requested in the URL
Browser Dependant Page
Netscape Page
Page to use for Netscape
IE Page
Page to use for IE
Page for Lynx
Page to use for text mode
Default Page
Page to use for other browsers
Country Specific Page
Requires the
mod_geoip
is setup and configured on your server. Thought the software is free, the datafiles are a commercial product. Allows you to redirect users to specific pages depending on their country of origin.
Country Code
US = United States GB = United Kingdom CA = Canada MX = Mexico FR = France NL = Netherlands A1 = Anonymous
Country Specific URL
page to redirect visitors from the country (index.us.html or index.fr.html)
Map Folder To Script
This trick will make it possible to run a script that has parameters in the URL. You can make a custom home page script for your users that they can access like /login/home.html or /login/preferences.html and have them both go to login.php.
Folder Name
Folder you will reference in your href and urls (ie login)
Script Name
Script that will be ran (ie login.php, login.cgi, or login.pl) If you would like the rest of the path as a POST variable, do something like "login.php?page="
Custom Error Documents
Allows you to specify custom documents to serve on error conditions
Error 400
Bad Request
Error 401
Authentication Required
Error 403
Forbidden
Error 404
Not Found
Error 500
Server Error
Redirection
Use this option if a document has been moved to a new url. It will take care of automatic redirection for the user.
Redirect Moved Document
Moved Document
New URL