Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/loops/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
WordPress迁移到windows server会导致主页上出现重定向循环_Wordpress_Loops_Redirect_Migration - Fatal编程技术网

WordPress迁移到windows server会导致主页上出现重定向循环

WordPress迁移到windows server会导致主页上出现重定向循环,wordpress,loops,redirect,migration,Wordpress,Loops,Redirect,Migration,我刚刚将wordpress网站迁移到运行IIS 7的2008 Windows服务器上 迁移工作正常,所有页面显示正常,除了主页导致无限重定向循环 这是主页(重定向循环的位置): 该页面运行良好: 我尝试了以下方法,但没有效果: 1) 我已经在wordpress上重新保存了我的永久链接,这没有帮助 2) 在wp-config.php文件中,我添加了: define('WP_HOME','http://www.aalphayellowcab.net'); define('WP_SITEURL','h

我刚刚将wordpress网站迁移到运行IIS 7的2008 Windows服务器上

迁移工作正常,所有页面显示正常,除了主页导致无限重定向循环

这是主页(重定向循环的位置):

该页面运行良好:

我尝试了以下方法,但没有效果:

1) 我已经在wordpress上重新保存了我的永久链接,这没有帮助

2) 在wp-config.php文件中,我添加了:

define('WP_HOME','http://www.aalphayellowcab.net');
define('WP_SITEURL','http://www.aalphayellowcab.net');
我还补充说:

define('ADMIN_COOKIE_PATH', '/');
/** define('COOKIE_DOMAIN', ''); **/
define('COOKIEPATH', '');
define('SITECOOKIEPATH', '');
3) 然后,我将此规则添加到web.config文件(Windows不使用.htaccess文件):


似乎什么都不起作用,我能做些什么来重写循环吗?如何解决此问题?我想可能是另一个php文件导致了这种情况

提前感谢,


Louis

我在这个链接下找到了答案:

基本上,我删除了下的functions.php文件中的一个片段 /wp content/themes/mysite/functions.php

这是文件中的第一个片段

我希望这对其他人有帮助

<rule name="Redirect to WWW" stopProcessing="true"> 
   <match url=".*" /> 
   <conditions> 
      <add input="{HTTP_HOST}" pattern="^aalphayellowcab.net$" /> 
         </conditions> 
      <action type="Redirect" url="http://www.aalphayellowcab.net/{R:0}" redirectType="Permanent" /> 
</rule>