artygrand/SyDES/master/.htaccess
AddDefaultCharset utf-8
ErrorDocument 403 /?route=common/error/e403
# Prevent Directoy listing
Options -Indexes
# Prevent Direct Access to files
<FilesMatch ".(db|log|sql|ini|cache)">
Order allow,deny
Deny from all
Satisfy all
</FilesMatch>
# SEF URL Settings
<IfModule mod_rewrite.c>
RewriteEngine On
# Force www:
#RewriteCond %{HTTPS} !=on
#RewriteCond %{HTTP_HOST} !^www..+$ [NC]
#RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
# Force non-www:
RewriteCond %{HTTPS} !=on
RewriteCond %{HTTP_HOST} ^www.(.+)$ [NC]
RewriteRule ^ http://%1%{REQUEST_URI} [R=301,L]
RewriteBase /
RewriteRule ^index.php$ - [L]
#hepler redirecting
RewriteRule ^rss/(.+)$ /index.php?route=common/rss/view/$1 [L]
RewriteCond %{REQUEST_URI} ^(/cache/img/)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^cache/img/(d+)_(d+)_(w)/(.+)$ index.php?route=common/thumb&width=$1&height=$2&act=$3&src=$4 [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*)/$ $1 [NC,R=301,L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule . index.php
</IfModule>
<IfModule mod_php5.c>
php_flag magic_quotes_gpc Off
php_flag magic_quotes_runtime Off
php_flag register_globals Off
</IfModule>
# optimization below
<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 1 week"
</IfModule>
<IfModule mod_headers.c>
<FilesMatch ".(ico|jpe?g|png|gif|swf|css|js)$">
Header set Cache-Control "max-age=604800, public"
</FilesMatch>
<FilesMatch ".(x?html?)$">
Header set Cache-Control "max-age=86400, private, must-revalidate"
</FilesMatch>
<filesMatch ".(ico|pdf|flv|jpe?g|png|gif|js|css|swf)$">
Header unset ETag
FileETag None
</filesMatch>
</ifModule>
<IfModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file .(html?|txt|css|js|php)$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_include mime ^image/.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
</IfModule>
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE application/x-javascript application/javascript text/javascript text/css text/html text/xml
</IfModule>
On Github License
Files