X-Git-Url: http://www.privoxy.org/gitweb/?a=blobdiff_plain;f=doc%2Fwebserver%2F.htaccess;h=62344b4ee3600a6f84296f40c8f9ce8faa7a6bd0;hb=13a5c4d6d453bba4efbfba6b878b1b93c23c4a42;hp=5bab17f54de3da280ed1e9c777c1c21d82b0a9fb;hpb=e1c5d08afd8f43b01f7c7dc4c86ab6725223d9e4;p=privoxy.git diff --git a/doc/webserver/.htaccess b/doc/webserver/.htaccess index 5bab17f5..62344b4e 100644 --- a/doc/webserver/.htaccess +++ b/doc/webserver/.htaccess @@ -11,6 +11,8 @@ # And redirects all requests to the canonical web server: # 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,6 +21,10 @@ # 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} !^www\.privoxy\.org\.?$ [NC] RewriteCond %{HTTP_HOST} !^$