forestrf/CoolStartNet/master/www/.htaccess
<IfModule mod_rewrite.c>
Options +FollowSymLinks
Options -Indexes
RewriteEngine On
RewriteBase /
#####################################
# Force without WWW
#####################################
# convertir www.***.com en ***.com
RewriteCond %{HTTP_HOST} ^www [NC]
RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
#####################################
# Dropbox Files shortcut
#####################################
RewriteRule ^externalfile/uid/(.+)/file/(.*)$ external.php?m=2&user=$1&file=/$2 [NC,L]
RewriteRule ^externalfile/(.*)$ external.php?m=2&file=/$1 [NC,L]
#####################################
# widgetfile shortcut
#####################################
RewriteRule ^widgetfile/([0-9]+)/(static|api)/(.+)$ file.php?widgetID=$1&name=$3 [NC,L]
#####################################
# widgets shortcut
#####################################
RewriteRule ^widgets/([0-9a-zA-Z-]+)$ widgets.php?action=$1 [NC,L]
#####################################
# If the file doesn't have a dot and doesn't end at /, it will be a .php file
#####################################
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^.]+[^/])$ $1.php [NC,L]
</IfModule>
#CACHE
<ifModule mod_headers.c>
# 1 YEAR
<FilesMatch ".(ico|pdf|flv|woff|eot|ttf|svg)$">
Header set Cache-Control "max-age=29030400, public"
</FilesMatch>
# 1 MONTH
<FilesMatch ".(jpg|jpeg|png|gif|swf)$">
Header set Cache-Control "max-age=2592000, public"
</FilesMatch>
# 1 MONTH
<FilesMatch ".(xml|txt|css|js)$">
Header set Cache-Control "max-age=2592000, proxy-revalidate"
</FilesMatch>
</ifModule>
On Github License
Files