Forum Moderators: phranque
foo.domain.tld/bar
to
www.domain.tld/foo/bar
but
www.domain.tld/test
should stay
www.domain.tld/test
Now I'd think this is somehow possible with the RewriteEngine
Thanks for any help
wabi
RewriteEngine On
Options +FollowSymlinks
# Rewrite Rule for foo.domain.tld
RewriteCond %{HTTP_HOST} foo.domain.tld$
RewriteCond %{REQUEST_URI}!/foo/
RewriteRule ^(.*)$ /foo/$1
bar is the $1 respectiley (.*) on the last line
Welcome to WebmasterWorld [webmasterworld.com]!
This recent thread [webmasterworld.com] may be of some help to you. It turns out that mapping arbitrary subdomains to subdirectories is rather tricky, but possible.
Jim