Point secondary domain to subfolder

Permalink
I know the Domain Mapper add-on will take a secondary domain and point it to a folder within your c5 installation. Domain mapper also keeps the secondary domain in the URL so it appears you are a completely different site.

In my case, I don't really want the secondary domain name to stay in the URL - I just want domaintwo.com to point to domainone.com/subfolder. I tried doing this with a simple redirect in .htaccess
RewriteCond %{HTTP_HOST} ^(www\.)?domaintwo\.com
RewriteCond %{REQUEST_URI} !subfolder/
RewriteRule ^(.*)$ subfolder/$1 [L]
however that doesn't seem to be working. Are there any other techniques or is the domain mapper the only solution?

hursey013
 
Mnkras replied on at Permalink Reply
Mnkras
if you have redirect to base url false then it will keep domain2.com otherwise its will end up domain1.com/subfolder

check out c5host.com
hursey013 replied on at Permalink Best Answer Reply
hursey013
I figured out a solution that works

RewriteCond %{HTTP_HOST} ^(www.)?domaintwo.com
RewriteRule ^(.*)$http://domainone.com/subfolder/$1... [R=301,L]