szurubooru/public_html/.htaccess
Marcin Kurczewski a1dfebea3b Changed templates MIME to text/plain
Makes more sense: try accessing some of the templates in the browser
directly.
2014-10-18 18:48:35 +02:00

19 lines
538 B
ApacheConf

DirectoryIndex app.min.html
DirectoryIndex index.html
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^/?data/posts/([^/]+)/? /api/posts/$1/content [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^/?data/thumbnails/(\d+)x(\d+)/posts/([^/]+)/? /api/posts/$3/thumbnail/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^/?data/thumbnails/(\d+)x(\d+)/avatars/([^/]+)/? /api/users/$3/avatar/$1 [L]
RewriteRule ^/?api/(.*) api-dispatch.php?q=$0 [QSA,L]
<IfModule mod_mime.c>
AddType text/plain .tpl
</IfModule>