Hi
I have the following problem my site:
I have 2 domains: 1 is pointing at the public_html root and the another one is pointing at a directory
so:
www.domain1.com -> public_html
www.domain2.com --> public_html/site2
I use a number of sub directories under site2
This works fine, but when I go to www.domain2.com/subdir (without a trailing slash) it gives me the following URL in Internet Explorer:
www.domain1.com/site2/subdir
When I use a traling slash at the end www.domain2.com/subdir/ the adress is the correct URL.
So I tried to add the following code into my .htaccess in directory site2:
RewriteEngine On
RewriteBase /site2/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !(.*)/$
RewriteRule ^(.*)$ http://www.domain2.com/$1/ [L,R=301]
But the result is the same. Can someone help me, since I probably do some thing wrong?
thanks in advance
Hans