feat: add "raw" dir to directory, make it indexable
This commit is contained in:
parent
53fc1fac5a
commit
de2dea4b18
2 changed files with 17 additions and 1 deletions
|
@ -1,6 +1,20 @@
|
|||
|
||||
AddType text/plain .md
|
||||
|
||||
RewriteEngine On
|
||||
RewriteBase /
|
||||
|
||||
RewriteCond %{REQUEST_URI} !^/?static/.*
|
||||
RewriteCond %{REQUEST_URI} !^/?(static|raw)/.*
|
||||
RewriteRule (.*) router.php
|
||||
|
||||
Allow from all
|
||||
|
||||
Options +Indexes
|
||||
|
||||
<filesMatch ".(flv|gif|ico|jpg|jpeg|mp4|mpeg|png|svg|swf|webp)$">
|
||||
Header set Cache-Control "max-age=315360, public"
|
||||
</filesMatch>
|
||||
|
||||
<filesMatch ".(js)$">
|
||||
Header set Cache-Control "max-age=315360, public"
|
||||
</filesMatch>
|
|
@ -1,5 +1,7 @@
|
|||
Allow from all
|
||||
|
||||
Options +Indexes
|
||||
|
||||
<filesMatch ".(flv|gif|ico|jpg|jpeg|mp4|mpeg|png|svg|swf|webp)$">
|
||||
Header set Cache-Control "max-age=315360, public"
|
||||
</filesMatch>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue