* wip limit in the headers * DÖNER is has no prio borders anymore, but is reverse ordered by modification time
33 lines
1.1 KiB
Plaintext
33 lines
1.1 KiB
Plaintext
RewriteEngine On
|
|
# The following rule tells Apache that if the requested filename
|
|
# exists, simply serve it.
|
|
RewriteCond %{REQUEST_FILENAME} -s [OR]
|
|
RewriteCond %{REQUEST_FILENAME} -l [OR]
|
|
RewriteCond %{REQUEST_FILENAME} -d
|
|
RewriteRule ^.*$ - [NC,L]
|
|
|
|
# The following rewrites all other queries to index.php. The
|
|
# condition ensures that if you are using Apache aliases to do
|
|
# mass virtual hosting, the base path will be prepended to
|
|
# allow proper resolution of the index.php file; it will work
|
|
# in non-aliased environments as well, providing a safe, one-size
|
|
# fits all solution.
|
|
RewriteCond %{REQUEST_URI}::$1 ^(/.+)(.+)::\2$
|
|
RewriteRule ^(.*) - [E=BASE:%1]
|
|
RewriteRule ^(.*)$ %{ENV:BASE}index.html [NC,L]
|
|
|
|
<Limit GET POST PUT DELETE HEAD OPTIONS>
|
|
Require all granted
|
|
</Limit>
|
|
<LimitExcept GET POST PUT DELETE HEAD OPTIONS>
|
|
Require all denied
|
|
</LimitExcept>
|
|
|
|
<Files revision.json>
|
|
FileETag None
|
|
Header unset ETag
|
|
Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
|
|
Header set Pragma "no-cache"
|
|
Header set Expires "Wed, 11 Jan 1984 05:00:00 GMT"
|
|
</Files>
|