0
/html => maindomain.com
/html/_subdomain => subdomain.maindomain.com
/html/_subdomain/anotherdomain => anotherdomain.com and subdomain.maindomain.com/anotherdomain
/html/_subdomain/anotherdomain/admin => anotherdomain.com/admin and subdomain.maindomain.com/anotherdomain/admin
我要找的.htaccess代码以拒绝“anotherdomain.com/admin”,让“subdomain.maindomain.com/anotherdomain/admin”只为这个文件夹。 我的代码
<Directory /html/subdomain/anotherdomain/admin>
Order Deny,Allow
Deny from all
Allow from subdomain.maindomain.com/anotherdomain/admin
</Directory>