在基于MVC php的站点中限制使用.htaccess获取

在基于MVC php的站点中限制使用.htaccess获取,php,.htaccess,kiss-mvc,Php,.htaccess,Kiss Mvc,我有一个基于KISSMVC php的站点,它具有以下.htaccess,只允许经过身份验证的用户查看该站点 RewriteEngine On RewriteBase /myphpsite/ RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php?/$1 [L] # Protect app files RewriteRule ^((app|system|scripts).*)$ index.php/$1 [L] Au

我有一个基于KISSMVC php的站点,它具有以下.htaccess,只允许经过身份验证的用户查看该站点

RewriteEngine On

RewriteBase /myphpsite/

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?/$1 [L]

# Protect app files
RewriteRule ^((app|system|scripts).*)$ index.php/$1 [L]

AuthName "Please enter your username and password"
AuthType Basic
<Limit GET>
require user THEUSERNAME
</Limit>
但这一点仍应引起注意:

http://fancywebsite.com/myphpsite
如果我能在.htaccess文件中指定在请求的URL包含“index.php/inventory/hash”时绕过或满足身份验证,那就太好了

http://fancywebsite.com/myphpsite