X-Git-Url: http://www.privoxy.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=doc%2Fwebserver%2Fconfig%2F.htaccess;h=0a2bfbf94c693b496c9860f3519313d891b891b3;hb=9c63d5fc0ef079cf0d29d64cb2cb5c26a196fac1;hp=934ac19c0d346139666386f32eac8cb7427124ee;hpb=9ce5edae4312ab1fcf16403a9a311395affc3c99;p=privoxy.git diff --git a/doc/webserver/config/.htaccess b/doc/webserver/config/.htaccess index 934ac19c..0a2bfbf9 100644 --- a/doc/webserver/config/.htaccess +++ b/doc/webserver/config/.htaccess @@ -3,7 +3,9 @@ # By Jon Foster # # Redirects any request for any file in this directory tree -# to an error page. +# to an error page. The error page is reached through the +# URL http://privoxy.org/config/ and is actually in +# the file index.php # # Uses Apache's mod_rewrite # See http://httpd.apache.org/docs/mod/mod_rewrite.html @@ -16,13 +18,17 @@ RewriteEngine on RewriteBase /config/ # The only file which really exists is index.php - allow this +RewriteCond %{HTTP_HOST} ^privoxy\.org\.?$ [NC,OR] +RewriteCond %{HTTP_HOST} ^$ RewriteRule index.php - [L] # Silently redirect the config dir to index.php +RewriteCond %{HTTP_HOST} ^privoxy\.org\.?$ [NC,OR] +RewriteCond %{HTTP_HOST} ^$ RewriteRule ^$ index.php [L] # anything else gets redirected to the config dir, and we update # the browser's location bar. -RewriteRule ^(.*)$ /config/ [R] +RewriteRule ^(.*)$ http://privoxy.org/config/ [R,L]