我有一个Joomla网站,文章的网址,如:HTTP://域名.com /目录/ article.html不要允许用户访问的Joomla目录使用的.htaccess
该网站允许用户访问的URL:http://域名.com /目录/ article.html
,但不允许的URL:http://域名.com /目录/或http://域名.com/catalog.html
我尝试使用htaccess的但它不起作用
RewriteCond %{REQUEST_URI} =http:// domain .com/catalog/
RewriteRule /catalog/ http:// domain .com/
谢谢
注: 因为目录有~200.000条。服务器关闭时,该目录像请求URL的用户列表中的文章:HTTP://域名.com /目录/
有没有这样的:
If (url==http:// domain .com/catalog/){
#redirect homepage
}else {
#do nothing, allow users access the url
}
您究竟想要做什么?你能举一些例子吗? – anubhava
我尝试允许用户访问目录中的文章,但拒绝目录的列表文章 – skeptau
那么您想阻止哪个URL?你想阻止'http:// domain.com/catalog /'URL? – anubhava