Remove cooltechzone.com from the sponsor list
[privoxy.git] / doc / webserver / .htaccess
1 # http://www.privoxy.org/.htaccess
2 #
3 # Initial version written by Jon Foster
4 #
5 # Intercepts requests for these servers:
6 #    http://ijbswa.sourceforge.net/
7 #    http://www.privoxy.org/
8 #    http://privoxy.org/
9 #
10 # And redirects all requests to the canonical web server:
11 #    http://www.privoxy.org/
12 #
13 # Requests for: http://config.privoxy.org/.*
14 # are redirected to: http://www.privoxy.org/config/
15 #
16 # Uses Apache's mod_rewrite
17 # See http://httpd.apache.org/docs/mod/mod_rewrite.html
18 #
19
20 # Enable mod_rewrite
21 RewriteEngine on
22
23 # Note that the parentheses seem to be mandatory
24 # even if we aren't interested in what they match.
25 RewriteCond %{HTTP_HOST}   ^config\.privoxy\.org [NC]
26 RewriteRule ^(.*)$         http://www.privoxy.org/config/ [R,L]
27
28 RewriteCond %{HTTP_HOST}   !^www\.privoxy\.org\.?$ [NC]
29 RewriteCond %{HTTP_HOST}   !^$
30 RewriteRule ^(.*)$         http://www\.privoxy.org/$1 [R,L]
31