i am using some rules to redirect different domains to subdirs like this:
RewriteCond %{HTTP_HOST} otherdomain.com$ [NC]
RewriteCond %{REQUEST_URI} !^/otherdomain.com/.*$
RewriteRule ^(.*)$ /otherdomain.com/$1
the structure of the files is like this:
root (main site)
root/otherdomain.com/ (other site)
root/otherdomain.com/folder1 (folder inside other site)
it works fine if I type this into a browser:
http://otherdomain.com/folder1/
because the browser shows me
http://otherdomain.com/folder1/
but if i type this:
http://otherdomain.com/folder1
without the ending slash, i get this in my browser:
http://otherdomain.com/otherdomain.com/folder1/
any ideas what i can do to stop this from happening?