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 .htaccesshowever that doesn't seem to be working. Are there any other techniques or is the domain mapper the only solution?
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]
I figured out a solution that works
RewriteCond %{HTTP_HOST} ^(www.)?domaintwo.com
RewriteRule ^(.*)$http://domainone.com/subfolder/$1... [R=301,L]
RewriteCond %{HTTP_HOST} ^(www.)?domaintwo.com
RewriteRule ^(.*)$http://domainone.com/subfolder/$1... [R=301,L]
check out c5host.com