字preSS htaccess的允许,拒绝不工作 [英] Wordpress htaccess allow, deny not working
本文介绍了字preSS htaccess的允许,拒绝不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
order deny,allow
deny from all
#allow from 127.0.0.1
这是我用的.htaccess,不知它不会阻止访问的每一个人,但只阻止某些资源(CSS,图片等)。你有什么想法?
This is the .htaccess I used, somehow it won't block the access for everyone, but only block certain resources (css, images etc.). Do you have any ideas ?
这应该已经做工精细快速debuging网站和短维护支持,我不需要任何的维持性网页左右。
This should've work fine for quick debuging the site and short maintenace, I don't need any maintance web pages or so.
推荐答案
添加此: RewriteEngine叙述过
在规则固定我的问题。
order deny,allow
deny from all
这篇关于字preSS htaccess的允许,拒绝不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文