I am trying to deny access to the sub-domain directory from those who browse directly in the sub-domain Get them straight for them. For example, I want people to go or not. If they show a 403 forbidden error, is it possible through HTAC? It went, but no one is doing this. The main purpose is to refuse them directly to the material. Did not try the following
& lt; Directory / test & gt; Decline order, Allow all to allow .example.com & lt; / Directory & gt;
You can perform a permanent redirection from example.com/test/ < Click on / code> to test.example.com
. This will ensure that each person comes to your site under test.example.com
. This would be more suitable for your users.
Rewrite on rewriting engine% {HTTP_HOST} ^ example.com [nc] revised rule ^ test /(.*)$ http: //test.example. If you really want to show 403 prohibited, you can do this RewriteEngine On RewriteCond% {@
HTTP_HOST} ^ example.com [ NC] Rerealitium ^ Test / (.*) = / [R = 403, NC]
Comments
Post a Comment