2008-11-21 18:25:23 +01:00
|
|
|
#####################################
|
|
|
|
# the first part of this file is used if you configure your scuttle for nice urls
|
2008-03-12 09:28:11 +01:00
|
|
|
# (see $cleanurls in config.inc.php)
|
2008-11-21 18:25:23 +01:00
|
|
|
#####################################
|
2008-03-12 09:28:11 +01:00
|
|
|
|
2008-04-21 10:44:44 +02:00
|
|
|
|
|
|
|
# Rewrite clean URLs onto real files
|
|
|
|
<IfModule mod_rewrite.c>
|
2019-01-20 22:19:33 +01:00
|
|
|
Options -MultiViews +FollowSymlinks
|
2008-04-21 10:44:44 +02:00
|
|
|
RewriteEngine On
|
|
|
|
RewriteCond %{REQUEST_FILENAME}.php -f
|
2009-09-17 14:36:21 +02:00
|
|
|
RewriteRule ^([^/.]+)/?(.*)$ /$1.php/$2 [QSA,L]
|
2009-09-29 08:57:24 +02:00
|
|
|
RewriteRule ^api/([a-z]+)/([a-z]+) /api/$1_$2.php
|
2008-04-21 10:44:44 +02:00
|
|
|
</IfModule>
|
2008-11-21 18:25:23 +01:00
|
|
|
|
|
|
|
|
|
|
|
#####################################
|
|
|
|
# This second part is used to speed-up the application
|
|
|
|
#####################################
|
|
|
|
|
2009-02-23 18:15:54 +01:00
|
|
|
<IfModule mod_expires.c>
|
|
|
|
ExpiresActive On
|
|
|
|
|
|
|
|
ExpiresByType image/ico "access plus 15 days"
|
|
|
|
ExpiresByType image/png "access plus 15 days"
|
|
|
|
ExpiresByType image/gif "access plus 15 days"
|
|
|
|
ExpiresByType text/js "access plus 15 days"
|
|
|
|
ExpiresByType text/css "access plus 15 days"
|
|
|
|
</IfModule>
|
2008-11-21 18:25:23 +01:00
|
|
|
|
|
|
|
|
2009-02-23 18:15:54 +01:00
|
|
|
<IfModule mod_deflate.c>
|
|
|
|
#<FilesMatch "\.(js|css)$">
|
|
|
|
SetOutputFilter DEFLATE
|
|
|
|
#</FilesMatch>
|
|
|
|
</IfModule>
|