apache_conf WP的.htaccess
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了apache_conf WP的.htaccess相关的知识,希望对你有一定的参考价值。
#errors on
php_value display_errors on
#uploads
php_value upload_max_filesize 30M
php_value post_max_size 30M
php_value max_execution_time 1000
php_value max_input_time 1000
# BEGIN GZIP COMPRESSION
<IfModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file \.(html?|txt|css|js|php|pl)$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_exclude mime ^image/.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
</IfModule>
# END GZIP COMPRESSION
# BEGIN DEFLATE COMPRESSION
<IfModule mod_filter.c>
AddOutputFilterByType DEFLATE "application/atom+xml" \
"application/javascript" \
"application/json" \
"application/ld+json" \
"application/manifest+json" \
"application/rdf+xml" \
"application/rss+xml" \
"application/schema+json" \
"application/vnd.geo+json" \
"application/vnd.ms-fontobject" \
"application/x-font-ttf" \
"application/x-javascript" \
"application/x-web-app-manifest+json" \
"application/xhtml+xml" \
"application/xml" \
"font/eot" \
"font/opentype" \
"image/bmp" \
"image/svg+xml" \
"image/vnd.microsoft.icon" \
"image/x-icon" \
"text/cache-manifest" \
"text/css" \
"text/html" \
"text/javascript" \
"text/plain" \
"text/vcard" \
"text/vnd.rim.location.xloc" \
"text/vtt" \
"text/x-component" \
"text/x-cross-domain-policy" \
"text/xml"
</IfModule>
# END DEFLATE COMPRESSION
以上是关于apache_conf WP的.htaccess的主要内容,如果未能解决你的问题,请参考以下文章
apache_conf WP Super Cache .htaccess
apache_conf .htaccess - WP Performance Score Booster插件设置
apache_conf WP上传文件夹.htaccess文件以确保安全
apache_conf wp-loginüber.htaccess absichern
apache_conf 带有JWT的WP 4.7 REST服务器的.htaccess
apache_conf 例如.htaccess这也有一些不允许访问wp-config的东西。