Apache开启Rewrite,expires和Gzip


Notice: Undefined index: HTTP_USER_AGENT in /var/www/html/cuijunwei/wp-content/plugins/crayon-syntax-highlighter/util/crayon_util.class.php on line 793

Notice: Undefined index: HTTP_USER_AGENT in /var/www/html/cuijunwei/wp-content/plugins/crayon-syntax-highlighter/util/crayon_util.class.php on line 793

Notice: Undefined index: HTTP_USER_AGENT in /var/www/html/cuijunwei/wp-content/plugins/crayon-syntax-highlighter/util/crayon_util.class.php on line 793

Rewrite规则开启,vi /etc/httpd/conf/httpd.conf找到并修改以下规则:

Gzip开启,在httpd.conf当中输入

expires开启

 

当然前提是rewrite,expires,defalte模块存在

发表评论

电子邮件地址不会被公开。 必填项已用*标注