.htaccess redirect domain to subdirectory without changing URL
snippet in htaccess

.htaccess redirect domain to subdirectory without changing URL

user5593

RewriteCond %{HTTP_HOST} ^(www\.)?domain2\.com$ [NC]
RewriteRule !^subdir/ /subdir%{REQUEST_URI} [L,NC]