How to redirect from a subdomain to a subfolder using .htaccess
snippet in htaccess

How to redirect from a subdomain to a subfolder using .htaccess

user7670

RewriteCond %{HTTP_HOST} ^subdomain\.domain\.com
RewriteRule ^(.*)$ http://domain.com/subfolder/$1 [R=301]