Inital commit
This commit is contained in:
@@ -2,9 +2,24 @@ Options +FollowSymlinks -Indexes
|
||||
|
||||
AddDefaultCharset UTF-8
|
||||
|
||||
#<RequireAll>
|
||||
# Require all granted
|
||||
# Require not ip 202.138.247.159
|
||||
#</RequireAll>
|
||||
|
||||
<IfModule mod_rewrite.c>
|
||||
RewriteEngine On
|
||||
|
||||
# RewriteCond %{HTTP_HOST} !www.sterivein.com$
|
||||
# RewriteRule (.*) https://www.sterivein.com/$1 [R=301,L]
|
||||
|
||||
# RewriteCond %{HTTPS} off
|
||||
# RewriteCond %{HTTP:X-Forwarded-Proto} !https
|
||||
# First rewrite to HTTPS:
|
||||
# Don't put www. here. If it is already there it will be included, if not
|
||||
# the subsequent rule will catch it.
|
||||
# RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
|
||||
|
||||
# If thelia is installed in a subdirectory (e.g., thelia2)
|
||||
# define the RewriteBase below to get a proper URL rewriting
|
||||
# RewriteBase /thelia2
|
||||
@@ -13,4 +28,53 @@ AddDefaultCharset UTF-8
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
|
||||
RewriteRule ^(.*)$ index.php [QSA,L]
|
||||
</IfModule>
|
||||
</IfModule>
|
||||
|
||||
<IfModule mod_expires.c>
|
||||
ExpiresActive On
|
||||
AddType font/ttf .ttf
|
||||
AddType font/eot .eot
|
||||
AddType font/otf .otf
|
||||
AddType font/woff .woff
|
||||
AddType font/woff2 .woff2
|
||||
AddType image/x-icon .ico
|
||||
#ExpiresDefault "access plus 7200 seconds"
|
||||
ExpiresByType image/jpg "access plus 2592000 seconds"
|
||||
ExpiresByType image/jpeg "access plus 2592000 seconds"
|
||||
ExpiresByType image/png "access plus 2592000 seconds"
|
||||
ExpiresByType image/gif "access plus 2592000 seconds"
|
||||
ExpiresByType image/ico "access plus 2592000 seconds"
|
||||
ExpiresByType image/icon "access plus 2592000 seconds"
|
||||
ExpiresByType image/x-icon "access plus 2592000 seconds"
|
||||
ExpiresByType text/css "access plus 2592000 seconds"
|
||||
ExpiresByType text/javascript "access plus 2592000 seconds"
|
||||
ExpiresByType font/ttf "access plus 2592000 seconds"
|
||||
ExpiresByType font/eot "access plus 2592000 seconds"
|
||||
ExpiresByType font/otf "access plus 2592000 seconds"
|
||||
ExpiresByType font/woff "access plus 2592000 seconds"
|
||||
ExpiresByType font/woff2 "access plus 2592000 seconds"
|
||||
ExpiresByType application/xhtml+xml "access plus 7200 seconds"
|
||||
ExpiresByType application/javascript A2592000
|
||||
ExpiresByType application/x-javascript "access plus 2592000 seconds"
|
||||
ExpiresByType application/x-shockwave-flash "access plus 2592000 seconds"
|
||||
#ExpiresByType text/html "access plus 7200 seconds"
|
||||
</IfModule>
|
||||
# END Expire headers
|
||||
|
||||
# BEGIN Cache-Control Headers
|
||||
<IfModule mod_headers.c>
|
||||
<FilesMatch "\.(ico|jpe?g|png|gif|swf|css|gz)$">
|
||||
Header set Cache-Control "max-age=2592000, public"
|
||||
</FilesMatch>
|
||||
<FilesMatch "\.(js)$">
|
||||
Header set Cache-Control "max-age=2592000, private"
|
||||
</FilesMatch>
|
||||
<filesMatch "\.(html|htm)$">
|
||||
Header set Cache-Control "max-age=7200, public"
|
||||
</filesMatch>
|
||||
# Disable caching for scripts and other dynamic files
|
||||
<FilesMatch "\.(pl|php|cgi|spl|scgi|fcgi)$">
|
||||
Header unset Cache-Control
|
||||
</FilesMatch>
|
||||
</IfModule>
|
||||
# END Cache-Control Headers
|
||||
|
||||
Reference in New Issue
Block a user