kobayosi/privoxy/master/doc/webserver/config/.htaccess - Htaccess File

kobayosi/privoxy/master/doc/webserver/config/.htaccess

# http://ijbswa.sourceforge.net/config/.htaccess
#
# By Jon Foster
#
# Redirects any request for any file in this directory tree
# to an error page.  The error page is reached through the
# URL http://www.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
#

# Enable mod_rewrite
RewriteEngine on

# we are reached via /config/ prefix
RewriteBase   /config/

# The only file which really exists is index.php - allow this
RewriteCond %{HTTP_HOST}   ^www.privoxy.org.?$ [NC,OR]
RewriteCond %{HTTP_HOST}   ^$
RewriteRule  index.php - [L]

# Silently redirect the config dir to index.php
RewriteCond %{HTTP_HOST}   ^www.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  ^(.*)$  http://www.privoxy.org/config/  [R,L]

On Github License

Files

Download PDF of Htaccess file
HTTP_HOST

Comments

Apache