Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
30 lines (24 sloc) 886 Bytes
#php_value post_max_size 4M
#php_value upload_max_filesize 3M
Options +FollowSymLinks -Indexes
RewriteEngine on
RewriteRule ^res/(\d+)/?$ res/$1.html [NC,L] #res/# -> res/#.html
RewriteRule ^res/(\d+).json$ api/$1.json [NC,L] #res/#.json -> api/#.json.
RewriteRule ^(logs|catalog)/?$ $1.html [L]
RewriteRule ^(?:page/)(\d+)/?$ $1.html [NC,L] #page/# -> #.html (indexes)
RewriteRule banned banned.php [NC]
#RewriteRule friendly_pcre target
#Flags: http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#rewriteflags
#Prevent accidental dumps. Just in case.
<Files config.php>
Deny from all
</Files>
#MORE anti-caching measures.
<IfModule mod_headers.c>
<Files *.html>
Header add Expires "Mon, 26 Jul 1997 05:00:00 GMT"
Header add Pragma "no-cache"
Header add Cache-Control "max-age=0; must-revalidate; no-cache"
Header unset Vary
</Files>
</IfModule>