From d80be686f10bcc5507706ab3e93699acd79ed675 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Sat, 31 Dec 2011 14:52:48 +0000 Subject: [PATCH] Redirect requests for http://config.privoxy.org/.* to http://www.privoxy.org/config/ config.privoxy.org used to be a separate server that was administrated by Andreas, but will be relocated to the SF webserver after the domain transfer is done. Note that the things SF calls VHOSTS all point to the same root directory, so we can't use a dedicated .htaccess file for config.privoxy.org. --- doc/webserver/.htaccess | 6 ++++++ 1 file changed, 6 insertions(+) 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} !^$ -- 2.39.2