apache_conf .htaccess配置
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了apache_conf .htaccess配置相关的知识,希望对你有一定的参考价值。
### BEGIN php tweaks ###
php_value memory_limit 512M
php_value upload_max_filesize 512M
php_value post_max_size 256M
php_value max_execution_time 300
php_value max_input_time 300
### END php tweaks ###
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
### EXPIRES CACHING ###
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access plus 1 week"
ExpiresByType image/jpeg "access plus 1 week"
ExpiresByType image/gif "access plus 1 week"
ExpiresByType image/png "access plus 1 week"
ExpiresByType text/css "access plus 1 week"
ExpiresByType application/pdf "access plus 1 week"
ExpiresByType text/x-javascript "access plus 1 week"
ExpiresByType application/x-shockwave-flash "access plus 1 week"
ExpiresByType image/x-icon "access plus 1 week"
ExpiresDefault "access plus 1 week"
</IfModule>
### EXPIRES CACHING ###
以上是关于apache_conf .htaccess配置的主要内容,如果未能解决你的问题,请参考以下文章
apache_conf 默认.htaccess配置重定向到app.php
apache_conf .htaccess,#AngularJS,UI-Router:配置Apache服务器以使用html5Mode
apache_conf WordPress .htaccess配置文件。允许强制SSL,隐藏wp-config.php,标头ETag,GZIP压缩和过期缓存。
apache_conf Bot Block .htaccess #htaccess #botblock
apache_conf 通过.htaccess(主.htaccess)保护wordpress网站
apache_conf [linux:.htaccess] apache的htaccess说明。 #linux #apache