Wordpress-htaccess访问
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Wordpress-htaccess访问相关的知识,希望对你有一定的参考价值。
# Original from http://zemalf.com/1470/wordpress-htaccess-the-definite-guide/ # BEGIN htaccess # Protect the htaccess file <Files .htaccess> Order Allow,Deny Deny from all </Files> # Protect the htaccess file <Files wp-config.php> Order Allow,Deny Deny from all </Files> # Disable directory browsing Options All -Indexes # Enable the following of symlinks Options +FollowSymLinks <IfModule mod_headers.c> # No ETags, No Pragma Header unset Pragma Header unset ETag # Make sure proxies deliver correct content Header append Vary User-Agent env=!dont-vary # Ensure proxies deliver compressed content correctly Header append Vary Accept-Encoding </IfModule> # BEGIN WordPress # IF WP ALREADY CREATED DO NOT REPLACE <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 # END htaccess
以上是关于Wordpress-htaccess访问的主要内容,如果未能解决你的问题,请参考以下文章