Use Chanel to bind multiple domain names to a justhost host to create multiple site methods

Source: Internet
Author: User

Intermediary transaction SEO diagnosis Taobao guest Cloud host technology Hall

A few days ago a foreign trade friend asked me to help maintain his two foreign trade website. He has two stations one is in GoDaddy above, the other is later bought on the Justhost on the virtual host. Because GoDaddy is about to expire, and often have FTP connection is not the reason, so he wants to put two sites to justhost virtual host. Because Justhost is a binding that does not limit the number of domain names, and does not require additional charges. I tried it. Justhost virtual host can bind a number of different domain names, only need to do some settings in the background, the number of domain names assigned to a different directory on it. Today sorted out the method, to justhost on the need to bind a number of different domain name friends a reference.

We first if there are two site domain name, of course, two different domain name, here is not a level two domain name. Suppose one domain name is www.techolics.com and the other is www.baidu.com. And www.techolics.com is the primary domain name, www.baidu.com is the new domain name that I need to append to later. Multi-domain binding environment has been assumed, the following formal start tutorial.

The first step is to bind the Justhost primary domain name to the subdirectory and modify it. htaccess

Because I want to bind two different domain names, in order to manage, I first put the main domain name files under a subdirectory. I googled it and found this web page how to host the Primary Domain from a subfolder (. htaccess). I would like to see what I want to solve the main domain name binding to subdirectories. So start right away, create a new subdirectory named Techolics under Justhost's FTP root directory. Here do not need to do in the background of the Justhost, but first step I www.techolics.com the main domain name files and directories are placed under the Techoics subdirectory. Then use FTP to connect to justhost FTP. Download the. htaccess file in the root directory to local and open it in Notepad. Then add the following code behind the file.

Rewriteengine on

Rewritecond%{http_host} ^ (www.)? techolics.com$

Rewritecond%{request_uri}!^/techolics/

Rewritecond%{request_filename}!-f

Rewritecond%{request_filename}!-d

Rewriterule ^ (. *) $/techolics/$1

Rewritecond%{http_host} ^ (www.)? techolics.com$

Rewriterule ^ (/) $ index.html [L]

The. htaccess file is then uploaded to the Justhost ftp root directory. Visit the www.techolics.com domain name, success! This will successfully point the primary domain name to a subdirectory on the justhost. Half the success here.

Step two, justhost bind multiple domain names to subdirectories

Here, for example, we assume that the second domain name, www.baidu.com is registered in GoDaddy, which will bind him to the justhost, and is the second domain name of multiple domain names. The operation is also very simple. We need to login Justhost Chanel backstage. After logging into the justhost Chanel background, locate the addon Domains below Domains. Click Addon Domains link.

  

OK, now all the multiple domain bindings are done on this page. In the justhost Chanel background of this page, the first step is to enter the need to bind the independent domain name. Of course, take the www.baidu.com here for example. So enter this address. After the input is complete, justhost will check the domain name. Because this domain name is not registered in the Justhost, so after checking completes, the second step prompts, first must upload an authentication HTML webpage in www.baidu.com this domain name root directory. Here it provides a piece of code, and a filename.

So with the FTP tool to connect on the site in GoDaddy, with Notepad copy paste this page file, upload to the host FTP under GoDaddy. He then asked for the nameserver registration of the domain name to be changed to Justhost to provide two parsing servers. So need to log into the background of the domain name, the nameserver records to justhost this page to provide two addresses.

is not finished, because the domain name to bind is not registered in Justhost, and is not the same registrant, so under the Justhost page there is an input box required to enter a section of EPP code. This EPP code needs to be obtained from the Registrar of the domain name. Because the second domain name is also registered in GoDaddy, so landed to GoDaddy, in the domain name of the management page to find a authentication code link, click on the back of the send by email link. Wait a while in the Mail received GoDaddy sent over the EPP code. Copy and paste it into the justhost input box.

  

This is basically done, and in step 3 you will choose Addon Domain. Indicates that a domain name binding is appended. In step 4, select or Create a new directory. This is the root directory that represents the binding of multiple domain names.

You also need to enter a sub-domain below. This allows you to access the bound multi-domain Web site using this level two domain name.

  

Then click Add Domain, if the above EPP code settings are correct, so that the Justhost host successfully appended a new domain name. This is also an advantage of justhost, where users can bind multiple domain names under the same host without new purchases and additional charges. And each domain name in the different subdirectories, the multi-domain name website access to each other will not have any influence. So we can open multiple sites on a justhost host.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.