Well, I’ve been developing sites for a year a half now and have been lucky enough to have dodged any major htaccess hacks… until now. I know that the official EE support for multiple domains is MSM, but my client just simply wants a 6 page sub-site with a separate domain. So I thought I could do a little htaccess trickery and solve the problem, however, I’m just plain stuck. Hoping for some help…
Basically:
main-domain.com -> /site/index.php
second-domain.com -> /a_folder/index.php
I’d like the change to be transparent to the user, so the url still says http://www.second-domain.com.
RewriteCond %{HTTP_HOST} ^second-domain.com$ [NC]
RewriteRule ^(.*)$ <a href="http://main-domain.com/a_folder/$1">http://main-domain.com/a_folder/$1</a> [L]This works, and it points to the right place but…. it changes the visible url for the user and that is undesireable. My (very limited) understanding is that internal redirects are invisible to the user, right? I’m a little lost, I’ve spent countless hours on this, grrrr, would be very grateful for a little help.
Thanks,
-kev