Hide subfolder for subdomain
snippet in htaccess

Hide subfolder for subdomain

user3213

RewriteEngine on
RewriteBase /

RewriteCond %{HTTP_HOST} ^sub\.domain\.com$ [NC] 
RewriteCond %{REQUEST_URI} !^/sub
RewriteRule ^(.*)$ sub/$1 [L]