-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
36 lines (34 loc) · 1.18 KB
/
.htaccess
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
ErrorDocument 404 /404
RewriteEngine on
RewriteBase /
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^.*$ index.php [L]
<IfModule mod_php5.c>
php_value upload_max_filesize 100000000
php_value post_max_size 110000000
php_value memory_limit 120000000
php_value max_input_time 20
</IfModule>
<ifModule mod_headers.c>
<FilesMatch "\.(js|css|txt|php)$">
Header set Cache-Control "max-age=2592000, must-revalidate"
</FilesMatch>
<FilesMatch "\.(flv|swf|svg|ico|gif|jpg|jpeg|png)$">
Header set Cache-Control "max-age=2592000, no-cache, must-revalidate"
</FilesMatch>
<FilesMatch "\.(pl|cgi|spl|scgi|fcgi|html|htm)$">
Header unset Cache-Control
</FilesMatch>
</IfModule>
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/plain text/css application/json
AddOutputFilterByType DEFLATE text/javascript application/javascript application/x-javascript
AddOutputFilterByType DEFLATE text/xml application/xml text/x-component
<FilesMatch "\.(ttf|otf|eot|svg)$" >
SetOutputFilter DEFLATE
</FilesMatch>
</IfModule>
RewriteCond %{HTTP_HOST} ^www\.elerance\.com$ [NC]
RewriteCond %{REQUEST_URI} !^/robots.*
RewriteRule ^(.*)$ http://elerance.com/$1 [R=301,L]