AddType text/plain .md AddType text/plain .atom AddType text/plain .rss php_value upload_max_filesize 40M php_value post_max_size 42M RewriteEngine On RewriteBase / RewriteCond %{REQUEST_URI} !^/(raw|static)/ RewriteRule ^.*\.(flv|gif|ico|jpg|jpeg|mp4|mpeg|png|svg|swf|webp)$ raw/%{HTTP_HOST}%{REQUEST_URI} [L,END] RewriteRule ^/?raw/(.*)$ raw/%{HTTP_HOST}/$1 [L,END] # RewriteCond %{HTTPS} !on # RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L,END] RewriteCond %{REQUEST_URI} !^/api/ RewriteCond %{REQUEST_URI} /\w+$ RewriteRule (.*) $1/ [R=301,L,END] RewriteCond %{REQUEST_URI} !^/?(src/dbtest\.php|static|raw|robots\.txt).* RewriteRule (.*) src/router.php Allow from all Options +Indexes Header set Cache-Control "max-age=60, public" Header set Cache-Control "max-age=60, public"