Search code examples
.htaccesslighttpd

Block direct access to folder, but grant access from subdomain


I've successfully installed a joomla website and was wondering if it's possible to access the admin panel through a subdomain redirect but blocking the direct access to 'administrator' folder.

In other words:

domain.net/administrator should be blocked (error 403 or other) and admin.domain.net should redirect to administrator folder.

Is it possible?


Solution

  • I solved my issue by installing AdminExile plugin: http://extensions.joomla.org/extensions/access-a-security/site-security/login-protection/15711

    Then i created a admin subdomain redirecting to /administrator?key=value and this solved my problem.