1 # http://ijbswa.sourceforge.net/config/.htaccess
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
10 # Uses Apache's mod_rewrite
11 # See http://httpd.apache.org/docs/mod/mod_rewrite.html
17 # we are reached via /config/ prefix
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]
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]
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]