0

Hey all I got a quick question for you that are more experienced than me with hosting etc :) I made a website and firs put it on one host and entered it's nameservers on my purchased domain website to link them of course. After that, I figured that host is too slow, so I changed to other host, and after that also changed my nameservers to be the ones of the new host. Now I have a problem, If someone goes to http://zipdaturl.com he gets redirected to the default index.php page of the old host and if it is with http://www.zipdaturl.com it goes to the correct one. What is it that I can do so that both of these go to the correct host ? I checked domain provider, both nameservers are pointing to the new correct host.

4

3 回答 3

1

好吧,我已经检查过了,两者URL都把我带到了同一个地方。website但我认为你还需要WWW使用ht access.

RewriteEngine on

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.*)$ __controller.php?p=$1 [L,QSA]

RewriteCond %{HTTP_HOST} ^zipdaturl\.com [NC]
RewriteRule (.*) http://www.zipdaturl.com/$1 [L,R=301]

大多数域需要一些时间才能指向。您可以通过 ping( window+rtype cmd) 来检查它。

ping -t www.zipdaturl.com

并检查即将到来的回应IP Address

于 2013-09-08T11:38:52.983 回答
1

联系您的旧域名服务器提供商并告诉他从他的停车场中删除该域,或者在您的旧主机上创建一个 index.html,如下所示:

<meta http-equiv="Refresh" content="0; url=http://www.zipdaturl.com/">
于 2013-09-08T11:34:54.100 回答
1

是的,www DNS 缓存(我敢肯定)正在为您的网站注册最新的主机提供商静态 IP,因此在您更改主机的几天内,这是“正常的 www 行为”。域名转移是最大的 www 更改(对于一个域/网站),您总是需要几天时间才能完成。

在那个时期,你有 2 个(这里和那里)“主机”。

有趣的是,根据您访问网站的位置,您可以看到实际网站,也可以同时看到旧网站。

但旧的将在几天内消失。享受!

于 2013-09-08T12:19:04.797 回答