Hello,
Here is my problem, hope you can solve it:
I have 2 domains: domain1.com and domain2.com and they both have the ip 127.0.0.1 but diferent dns'es. The original hosting account is only for domain1.com and i set the same ip for domain2 too.
Now, since they have different content types i want domain2.com to have the docroot on domain1.com/folderd4domain2/.
I tried the example from apache doc but it doesnt work right.
#RewriteEngine on
#RewriteCond %{HTTP_HOST} ^(.*)domain2\.com$
#RewriteRule ^/$ http://www.domain1.com/folder4domain2/ [L]
#Iniatilly it was [R,L] but i removed the R, because i don't know if search engines see it like a redirect.
It does work somehow but it ads an extra slashlike this:
http://www.domain2.com//myfile.html
Hope you can help me with some advice,
Thank you.