Fany_VanDaal icon

Přepis htaccess+gzip

Fany_VanDaal | PRO | 11/14/20 02:26:50 PM UTC | 0 ⭐ | 614 👁️ | Never ⏰ | []
text |

740 B

|

None

|

0 👍

/

0 👎

#ignored: "-" thing used or unknown variable in regex/rew
if (!-f $request_filename){
	set $rule_1 1$rule_1;
}
if (!-d $request_filename){
	set $rule_1 2$rule_1;
}
if ($rule_1 = "21"){
	rewrite /. /index.php last;
}
gzip on;
gzip_disable "MSIE [1-6]\\.(?!.*SV1)";
gzip_proxied any;
gzip_comp_level 5;
gzip_types text/plain text/css application/javascript application/x-javascript text/xml application/xml application/rss+xml text/javascript image/x-icon image/bmp image/svg+xml;
gzip_vary on;
 location ~* \.(jpg|jpeg|png|gif|ico|css|js|pdf|svg)$ {
	expires 7d;
	add_header Cache-Control "public, no-transform";
}
 location ~* \.(jpg|jpeg|png|gif|ico|css|js|pdf|svg)$ {
	expires 7d;
}
location ~* \.(pdf|html|swf)$ {
	expires 7d;
}

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎