简体   繁体   中英

How to make same Website as multiple subdomain

I need a big big help from you guys. I have a website, say for an example www.abc.com. My Client need to change this entire website for three subdomains to address three countries.all three should be identical copies.

Example:

  1. http://us.abc.com
  2. http://in.abc.com

All the three subdomains should work like the main website. I thought to copy all my site folders to copy into three folders as US, IN, FR and uploading it into the host and direct those folders to subdomains. Since this will create large number of files and folders I'll hesitate to do this.

Is this method is good or how should I overcome the situation... Glad if you can give me a clue. Thanks.

I'm not entirely sure what your question is:

  1. It sounds like you want to use Apache virtual hosts (so the different domain names will be handled by the same server):

  2. Of course, you need to have DNS for the three domains point to your web server

  3. You can use Apache configuration to allow the content to be shared or distinguished between the different domains as you wish.

'Hope that helps...

PS: To answer your original question:

If "http://us.abc.com" and "http://in.abc.com" were different domains with identical content, you wouldn't even need virtual hosts: you could have "abc.com" serve both. But virtual hosts would still be cleaner - in case you wanted to customize one site or the other in the future.

If, on the other hand, you had "http://mysite.abc.com" and "http://mysite.abc.com.in", then you could still serve both sites from the same server. But you must use virtual hosts (because "abc.com" and "abc.com.in" are different domains).

Again - I hope that helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM