IXwebhosting主机用htaccess独立和共享ip绑定域名到目录,操作步骤如下:
1、解析您的域名(或二级域名)到IXwebhosting主机配置的IP;
2、修改htaccess文件(可以用Notepad进行编辑);
3、把.htaccess文件上传到IXwebhosting主机根目录下面。
以下代码供参考
参考资料-1
参考资料-2
Tags - ixwebhosting , 域名绑定
1、解析您的域名(或二级域名)到IXwebhosting主机配置的IP;
2、修改htaccess文件(可以用Notepad进行编辑);
3、把.htaccess文件上传到IXwebhosting主机根目录下面。
以下代码供参考
Rewriteengine on
DirectoryIndex home.html index.html index.php index.cgi index.htm
# 酒店预订联盟网站设
RewriteCond %{REQUEST_URI} !^/128uu/.*
RewriteCond %{HTTP_HOST} =www.ttinn.com
RewriteRule ^(.*) /128uu/$1 [L]
# 酒店预订联盟网站设
RewriteCond %{REQUEST_URI} !^/128uu/.*
RewriteCond %{HTTP_HOST} =www.lvquan.com
RewriteRule ^(.*) /128uu/$1 [L]
# 思齐个人网站
RewriteCond %{REQUEST_URI} !^/sky/.*
RewriteCond %{HTTP_HOST} =sky.job.sh
RewriteRule ^(.*) /sky/$1 [L]
DirectoryIndex home.html index.html index.php index.cgi index.htm
# 酒店预订联盟网站设
RewriteCond %{REQUEST_URI} !^/128uu/.*
RewriteCond %{HTTP_HOST} =www.ttinn.com
RewriteRule ^(.*) /128uu/$1 [L]
# 酒店预订联盟网站设
RewriteCond %{REQUEST_URI} !^/128uu/.*
RewriteCond %{HTTP_HOST} =www.lvquan.com
RewriteRule ^(.*) /128uu/$1 [L]
# 思齐个人网站
RewriteCond %{REQUEST_URI} !^/sky/.*
RewriteCond %{HTTP_HOST} =sky.job.sh
RewriteRule ^(.*) /sky/$1 [L]
参考资料-1
参考资料-2
Tags - ixwebhosting , 域名绑定