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>