拒绝与.htaccess或其他任何内容的主链接


Denying main links with .htaccess or anything else

我正在使用一个带有smarty模板的加密php程序。

我想打开像index.php?page=login这样的链接以使用login.php打开,所以我在.htaccesss中使用了"重写"模式,例如

RewriteRule ^/*login.php$ /index.php?page=login [L]

在一些页面中,应该有一个错误查询,如

RewriteRule ^/*support.php?(.+)$ /index.php?page=support&%{QUERY_STRING} [L]

它有效,但我需要拒绝主URL,所以当用户输入index.php时?a=手动登录不会显示任何内容(或主页),他应该只使用/login.php打开链接。有办法做到这一点吗?

请帮我一点忙。。。

在(!)其他规则:之前,它应该与一个对应的重传文件一起工作

RewriteRule ^/*index.php?a=login$ / [L]