标签: .htaccess url-rewriting
我试图重写单个文件的url地址,例如:
RewriteEngine On RewriteRule ^test/?$ test-directory/test.php
但是test.php在以下两种路径中可用: site.com/test&site.com/test-directory/test.php
如何阻止原始路径(site.com/test-directory/test.php)以使其不可用?