Regenerate HTML man page
[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.  The error page is reached through the
7 # URL http://www.privoxy.org/config/ and is actually in
8 # the file index.php
9 #
10 # Uses Apache's mod_rewrite
11 # See http://httpd.apache.org/docs/mod/mod_rewrite.html
12 #
13
14 # Enable mod_rewrite
15 RewriteEngine on
16
17 # we are reached via /config/ prefix
18 RewriteBase   /config/
19
20 # The only file which really exists is index.php - allow this
21 RewriteCond %{HTTP_HOST}   ^www\.privoxy\.org\.?$ [NC,OR]
22 RewriteCond %{HTTP_HOST}   ^$
23 RewriteRule  index.php - [L]
24
25 # Silently redirect the config dir to index.php
26 RewriteCond %{HTTP_HOST}   ^www\.privoxy\.org\.?$ [NC,OR]
27 RewriteCond %{HTTP_HOST}   ^$
28 RewriteRule  ^$      index.php [L]
29
30 # anything else gets redirected to the config dir, and we update
31 # the browser's location bar.
32 RewriteRule  ^(.*)$  http://www.privoxy.org/config/  [R,L]
33
34