Ixwebhosting independent IP Binding subdirectory tutorial

Source: Internet
Author: User

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

Ixwebhosting host free Independent IP, this for many familiar with his friends should be aware of, but, in the control Panel, whether to add a domain name or a child domain name will create a new directory with domain name, and can not use the same independent IP, And when we need to build more than one site, we know how to use their shared IP.

The risk of sharing IP is very high, how to make greater use of the ixwebhosting provided by the independent IP! That's what we're going to talk about today, Often in the bbs.idcspy.com of the mixed friend should know, Ixwebhosting Linux host support. htaccess This file, then we can use this file to implement binding subdirectories under the same independent IP.

First to add a domain name in the control Panel, to get a home directory and a separate IP, followed by uploading a. htaccess such a file into this home directory. The rules of htaccess are summarized in the following two ways:

Method One:

The first step: in the main directory, to build a directory, and name it, and the site's program files uploaded to the directory;

Step Two: Resolve domain name to independent IP,

Step three: Open the. htaccess file to write the following rules and save the upload to the home directory.

. The htaccess rules are as follows:

Rewriteengine on

Rewritecond%{http_host} ^ (www.)? ixwebhosting.im$

Rewritecond%{request_uri}!^/dz/

Rewritecond%{request_filename}!-f

Rewritecond%{request_filename}!-d

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

Rewritecond%{http_host} ^ (www.)? ixwebhosting.im$

Rewriterule ^ (/) $ dz/index.php [L]

Method Two: [We take domain name primary domain name as example]

The first step: in the main domain name of this directory, to build a directory, and named (named Dede), and the site's program files uploaded to the directory;

Step Two: Parse this subdomain to independent IP

Step three: Open the. htaccess file to write the following rules and save the upload to the home directory.

Level two subdomain. The htaccess rules are as follows:

Rewriteengine on

Rewritecond%{request_uri}!^/dede/.*

Rewritecond%{http_host} =dede.ixwebhosting.im

Rewriterule ^ (. *)/dede/$1 [L]

So you can realize the binding of ixwebhosting subdirectory, ixwebhosting provide independent IP is very useful, for Do station group webmaster want to have more independent IP, with independent IP will not be afraid of the site will be compromised by other bad sites, through the above methods, You can also take advantage of the shared IP they provide.

Original content, reprint please specify from: www.ixwebhosting.im

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.