I have the site example.com.
In one of its folders, I have a different site which is accessed through the domain exampleSubSite.com and the folder of the second site is called /exampleSubSiteFolder/.
The access is made via redirect in the .htaccess of the main site:
RewriteRule ^exampleSubSiteFolder - [L] RewriteCond %{HTTP_HOST} ^(www\.)?exampleSubSite\.com$ [NC] RewriteRule ^(.*)$ exampleSubSiteFolder/$1 [L] However, I DO NOT want this folder to be accessible from the URL of the main site:
exampleSite.com/exampleSubSiteFolder/
Can someone, please help me with that? I know the solution is bad as a whole, but this does not depend on me.