Forum Moderators: phranque
My share hosting provider does not offer add-on domains. So is it possible to bind domain2.com to a subfolder of my current site and using this domain2.com to access this subfolder directly? I believe I need to set both domain A record and .htaccess file under subfolder.
After that, a search here on WebmasterWorld for 'rewriterule subdomain subdirectory' will turn up lots of threads on a related subject. The code in those threads can be modified to suit your needs.
The difficult part is getting the hosting company to configure the server to recognize requests for those new domains. In most cases, they won't do it. However, in some cases, they do allow wildcard subdomains, which is something to consider if you have no other options.
Jim