Last active
November 19, 2021 02:04
-
-
Save kosinix/8267252 to your computer and use it in GitHub Desktop.
Prevent Access to Subdomain Folder from Main Domain. Note: Place this in your sub domain's .htaccess file (public_html/subdomain). Change subdomain to actual sub-domain and mysite.com to your main domain.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RedirectMatch ^/subdomain/(.*)$ http://subdomain.mysite.com/$1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It works for me, in cpanel.