mhl/mysociety-cvs/master/na/web/.htaccess - Htaccess File

mhl/mysociety-cvs/master/na/web/.htaccess

DirectoryIndex index.shtml

RewriteEngine On

# Make a file down.html in the DocumentRoot to bring down the whole site
# displaying itself.
RewriteCond %{DOCUMENT_ROOT}/down.html -s
RewriteRule /(.+).php /down.html [R]
RewriteCond %{DOCUMENT_ROOT}/down.html !-s
RewriteRule /down.html / [R]

#RewriteRule ^/cgi-bin(.*)   /cgi-bin$1 [R]
RewriteRule ^random         /cgi-bin/random.cgi [L]
#RewriteRule ^new/           / [R]

Options +Includes +ExecCGI

DirectoryIndex index.html index.shtml

# all the SSI directives
AddType text/x-server-parsed-html .shtml
AddType text/html .shtml 
Options +Includes
AddHandler server-parsed .shtml 

# so CGIs work
Options +ExecCGI
AddHandler cgi-script .cgi
 
# so mod_rewrite works. But it breaks the SSI. WTF? 
Options +SymLinksIfOwnerMatch

On Github License

Files

Download PDF of Htaccess file
DOCUMENT_ROOT

Comments

Apache