Forum Moderators: phranque

Message Too Old, No Replies

How to "bind" a domain2.com to domain1.com/subfolder/

Using .htaccess

         

iProgram

8:51 am on Mar 3, 2006 (gmt 0)

10+ Year Member



Is this possible to do that?

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.

jdMorgan

3:51 pm on Mar 3, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yes, but you will also need the host to configure the server to 'pass' requests for those other domains through to your 'account.'

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