X-Git-Url: http://www.privoxy.org/gitweb/?a=blobdiff_plain;f=doc%2Fwebserver%2F.htaccess;h=657fada3fc03841c16313519a0adb036ce9ad429;hb=fa97581ab8f6215932993dfe8d81be7afb2c8108;hp=0ecf688da0ff1ccc8d94bce2a8015bb34100f158;hpb=9c63d5fc0ef079cf0d29d64cb2cb5c26a196fac1;p=privoxy.git diff --git a/doc/webserver/.htaccess b/doc/webserver/.htaccess index 0ecf688d..657fada3 100644 --- a/doc/webserver/.htaccess +++ b/doc/webserver/.htaccess @@ -1,16 +1,17 @@ -# http://privoxy.org/.htaccess +# http://www.privoxy.org/.htaccess # -# By Jon Foster +# Initial version written by Jon Foster # # Intercepts requests for these servers: # http://ijbswa.sourceforge.net/ -# http://privoxy.com/ -# http://www.privoxy.com/ # http://www.privoxy.org/ +# http://privoxy.org/ # # And redirects all requests to the canonical web server: -# http://privoxy.org/ +# http://www.privoxy.org/ # +# Requests for: http://config.privoxy.org/.* +# are redirected to: http://www.privoxy.org/config/ # # Uses Apache's mod_rewrite # See http://httpd.apache.org/docs/mod/mod_rewrite.html @@ -19,8 +20,12 @@ # Enable mod_rewrite RewriteEngine on +# Note that the parentheses seem to be mandatory +# even if we aren't interested in what they match. +RewriteCond %{HTTP_HOST} ^config\.privoxy\.org [NC] +RewriteRule ^(.*)$ http://www.privoxy.org/config/ [R,L] -RewriteCond %{HTTP_HOST} !^privoxy\.org\.?$ [NC] +RewriteCond %{HTTP_HOST} !^www\.privoxy\.org\.?$ [NC] RewriteCond %{HTTP_HOST} !^$ -RewriteRule ^(.*)$ http://privoxy.org/$1 [R,L] +RewriteRule ^(.*)$ http://www\.privoxy.org/$1 [R,L]