diff options
author | cweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2009-11-10 17:52:33 +0000 |
---|---|---|
committer | cweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2009-11-10 17:52:33 +0000 |
commit | a09a6b9cd2f9cc30ad95cd30d38b8fc33e834999 (patch) | |
tree | f1ef08f0b8bf082650322fb4cc895514db89096b /www/.htaccess | |
parent | 3edc7cf8bbe50744dd260eed8df825e69e83fb26 (diff) | |
download | semanticscuttle-a09a6b9cd2f9cc30ad95cd30d38b8fc33e834999.tar.gz semanticscuttle-a09a6b9cd2f9cc30ad95cd30d38b8fc33e834999.tar.bz2 |
move .htaccess to web dir
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@535 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'www/.htaccess')
-rw-r--r-- | www/.htaccess | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/www/.htaccess b/www/.htaccess new file mode 100644 index 0000000..563fe53 --- /dev/null +++ b/www/.htaccess @@ -0,0 +1,36 @@ +##################################### +# the first part of this file is used if you configure your scuttle for nice urls +# (see $cleanurls in config.inc.php) +##################################### + + +# Rewrite clean URLs onto real files +<IfModule mod_rewrite.c> +Options +FollowSymlinks +RewriteEngine On +RewriteCond %{REQUEST_FILENAME}.php -f +RewriteRule ^([^/.]+)/?(.*)$ /$1.php/$2 [QSA,L] +RewriteRule ^api/([a-z]+)/([a-z]+) /api/$1_$2.php +</IfModule> + + +##################################### +# This second part is used to speed-up the application +##################################### + +<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> + + +<IfModule mod_deflate.c> +#<FilesMatch "\.(js|css)$"> +SetOutputFilter DEFLATE +#</FilesMatch> +</IfModule> |