X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=doc%2Fwebserver%2F.htaccess;h=657fada3fc03841c16313519a0adb036ce9ad429;hp=e2c3e3dbe5ffb016c93025ba89a8fc71b0dcdc33;hb=c4fe56c65d954f517b56ab46165163cab92e5daa;hpb=022897470d9c9aa1fa959c9a36272a88cbba1852 diff --git a/doc/webserver/.htaccess b/doc/webserver/.htaccess index e2c3e3db..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://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 +20,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} !^$