Redirect requests for http://config.privoxy.org/.* to http://www.privoxy.org/config/
authorFabian Keil <fk@fabiankeil.de>
Sat, 31 Dec 2011 14:52:48 +0000 (14:52 +0000)
committerFabian Keil <fk@fabiankeil.de>
Sat, 31 Dec 2011 14:52:48 +0000 (14:52 +0000)
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

index 5bab17f..62344b4 100644 (file)
@@ -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
 # 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}   !^$