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