You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
557 B
ApacheConf
17 lines
557 B
ApacheConf
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
# Redirect 404'd thumbnail requests to a script that will generate them.
|
|
|
|
RewriteEngine on
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !-d
|
|
RewriteCond %{REQUEST_FILENAME} !-f
|
|
RewriteRule ^(.*)/?$ handle_404.php?file=$1 [QSA,L]
|
|
|
|
<IfModule mod_headers.c>
|
|
<filesMatch ".jpg$">
|
|
Header set Cache-Control "max-age=604800, public"
|
|
</filesMatch>
|
|
</IfModule> |