Forum Moderators: coopster
I am looking for a work around so that I can keep the scripts in my current domain and just point my new domain to it. The hard part is I don't want anyone to know they are at a different domain, as a example,
if my current domain is www.mydomain.com and my new domain is www.mydomain2.com I want to point www.mydomain2.com to www.mydomain.com and still have the URL in the browser say www.mydomain2.com
can this be done? I'm trying to save myself from paying the $50, not because of the cost it's because of the person I would have to pay it to.
RewriteEngine On
RewriteCond %{HTTP_HOST} www.domain2.com
RewriteRule ^(.*)$ [domain1.com...] [L]
By not putting [R] into the rewrite rule, the browser is not informed of a redirect and so the address bar will still show www.domain2.com/whatever.html
Obviously, if you only want to point certain files or directories to domain1 you could set up more RewriteConds to only catch the specific files you want.
Hope this helps
John