Update xhtml-compiler.
[htmlpurifier-web.git] / .htaccess.in
blobe092fbcf3b15d2d6e655cde3c4c0ec386db7a6b6
1 # HERE xhtml-compiler/main.php mod_rewrite
3 # Deny .git directories; some sub-repositories might be private
4 # If you're interested in the htmlpurifier-web or xhtml-compiler sources,
5 # check out git.htmlpurifier.org or repo.or.cz/w/$project.git
6 # WARNING: Bare repositories, with format reposname.git are NOT blocked.
7 RewriteRule (^|/)\.git/ - [F]
9 # Old release warning rewrites
10 RewriteCond %{REQUEST_METHOD} !=POST
11 RewriteCond %{REQUEST_URI} !/htmlpurifier-4\.4\.0(\.|-standalone|-lite)
12 RewriteCond %{REQUEST_URI} !/htmlpurifier-trunk(\.|-standalone|-lite)
13 RewriteCond %{REQUEST_URI} !/phorum-htmlpurifier-4\.4\.0\.
14 RewriteCond %{REQUEST_URI} !\.sig$
15 RewriteRule ^releases/(htmlpurifier-|phorum-) releases/warning.html [N]
17 # Docs
18 RewriteRule ^docs$ docs/ [R]
19 RewriteRule ^docs(/.*|) dev/docs$1
21 Options +Indexes
23 <Files *.rss>
24   SetHandler none
25 </Files>