934ac19c0d346139666386f32eac8cb7427124ee
[privoxy.git] / doc / webserver / config / .htaccess
1 # http://ijbswa.sourceforge.net/config/.htaccess
2 #
3 # By Jon Foster
4 #
5 # Redirects any request for any file in this directory tree
6 # to an error page.
7 #
8 # Uses Apache's mod_rewrite
9 # See http://httpd.apache.org/docs/mod/mod_rewrite.html
10 #
11
12 # Enable mod_rewrite
13 RewriteEngine on
14
15 # we are reached via /config/ prefix
16 RewriteBase   /config/
17
18 # The only file which really exists is index.php - allow this
19 RewriteRule  index.php - [L]
20
21 # Silently redirect the config dir to index.php
22 RewriteRule  ^$      index.php [L]
23
24 # anything else gets redirected to the config dir, and we update
25 # the browser's location bar.
26 RewriteRule  ^(.*)$  /config/  [R]
27
28