dongshaoxiong0012 2012-05-03 16:02
浏览 17
已采纳

一些SEO工具告诉我该网站正在重定向到一个奇怪的网址

I have a really strange "problem". I tryed to check my main page from the site (http://www.zen-slim.com/) with some online redirect tools and i got a strange "reaction" from them.

As you could see in the pictures, on this particular tool, i receive two 302 redirects and then a 200 (which i think it should have been the normal thing, as the site is working and operational). I tryed to check the header responses with curl and fsocketopen and i got 200 responses from both of them. But the online tools say something different. My .htaccess file is http://pastebin.com/Wgjxrq83.

Could you please help, because i really don't know what's wrong with it.

Thank you.

  • 写回答

3条回答 默认 最新

  • duanlou2917 2012-05-08 04:39
    关注

    I was, finally, being able to figure this out. Aparently, the following code from .htaccess file was the problem:

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

    and changed it to this:

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

    This is definitely a strange behaviour.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

悬赏问题

  • ¥50 求解vmware的网络模式问题 别拿AI回答
  • ¥24 EFS加密后,在同一台电脑解密出错,证书界面找不到对应指纹的证书,未备份证书,求在原电脑解密的方法,可行即采纳
  • ¥15 springboot 3.0 实现Security 6.x版本集成
  • ¥15 PHP-8.1 镜像无法用dockerfile里的CMD命令启动 只能进入容器启动,如何解决?(操作系统-ubuntu)
  • ¥30 请帮我解决一下下面六个代码
  • ¥15 关于资源监视工具的e-care有知道的嘛
  • ¥35 MIMO天线稀疏阵列排布问题
  • ¥60 用visual studio编写程序,利用间接平差求解水准网
  • ¥15 Llama如何调用shell或者Python
  • ¥20 谁能帮我挨个解读这个php语言编的代码什么意思?