RewriteEngine On

# 1. Routing for namoranexaniaga.com to /namoranexa folder
RewriteCond %{HTTP_HOST} ^(www\.)?namoranexaniaga\.com$ [NC]
RewriteCond %{REQUEST_URI} !^/namoranexa/
RewriteRule ^(.*)$ namoranexa/$1 [L]

# 2. Routing for jualbatualam.co.id to /jualbatualam folder
RewriteCond %{HTTP_HOST} ^(www\.)?jualbatualam\.co\.id$ [NC]
RewriteCond %{REQUEST_URI} !^/jualbatualam/
RewriteRule ^(.*)$ jualbatualam/$1 [L]
