我有已在他的基地.htaccess文件以下规则Magento的网上商店:多个htaccess文件并发症
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule .* index.php [L]
现在我有所谓的“oscware”网络商店根的子目录。在这个文件夹也与下列内容的htaccess文件:
AuthType Basic
AuthName "Please enter your ID and password"
AuthUserFile .htpasswd
require valid-user
如果我想连接到
http://www.example.com/oscware/oscware-connector.php如果我删除的规则,我将被重定向到Magento的店,错误404
RewriteRule .* index.php [L]
它的工作原理。好的,大家应该认为问题是在重写的情况下。但事实并非如此。由于在另一侧,如果我删除的规则
require valid-user
在oscware目录它也适用.htaccess文件(该规则
RewriteRule .* index.php [L]
)
最后我能只能编辑webshop-root中的magento .htaccess,因为会自动生成oscware .htaccess。有没有人想出这个场景的工作原理?
在此先感谢!
我已经解决了在.htaccess文件下面的语句问题: 的ErrorDocument 401测试。 html –