I have a subdomain called sub.domain2.com which I want to point to domain1.com/folder/
I have set up an A record to point sub.domain2.com to domain1.com and a rewrite rule to the point the subdomain to the subdirectory:
RewriteCond %{HTTP_HOST} sub\.domain2\.com$
RewriteRule (.*) http://sub.domain2.com/folder/$1 [L]
However I don’t want the subdirectory /folder/ showing in the URL which it currently is?
Thanks
Alex
remove
http://.../because it will force external redirect.