字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