apache_conf 完成para wordpress,sem永久链接
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了apache_conf 完成para wordpress,sem永久链接相关的知识,希望对你有一定的参考价值。
# Block wp-includes folder and files
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^wp-admin/includes/ - [F,L]
RewriteRule !^wp-includes/ - [S=3]
RewriteRule ^wp-includes/[^/]+\.php$ - [F,L]
RewriteRule ^wp-includes/js/tinymce/langs/.+\.php - [F,L]
RewriteRule ^wp-includes/theme-compat/ - [F,L]
</IfModule>
# deny all .exe files
<files "*.exe">
order deny,allow
deny from all
</files>
# prevent directory browsing
Options -Indexes
# protect .htaccess file
<Files ~ "^.*\.([Hh][Tt][Aa])">
order allow,deny
deny from all satisfy all
</Files>
# protect from script injections
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
RewriteRule ^(.*)$ index.php [F,L]
# protect wp-config.php
<Files wp-config.php>
order allow,deny
deny from all
</Files>
以上是关于apache_conf 完成para wordpress,sem永久链接的主要内容,如果未能解决你的问题,请参考以下文章
apache_conf htaccess para codeigniter
apache_conf config para las configuraciones del sistema de tienda
apache_conf Configurar el Mercury / 32 del Xampp para enviar correos externos
apache_conf Para erros de import dos produtos configuraveis do magento(Quando sefazadmandárioro
php 查询帖子类型wordpres
php Wordpres检索密码电子邮件