doushan2311 2015-07-27 09:06
浏览 44
已采纳

关于文件的SEO HTML状态301?

Good morning.

Currently trudging through SEO part of a website and i'm using a checklist found on http://www.clickminded.com/seo-checklist/ found parts of to be very helpful.

I have gotten to a part which suggested using Scream Frog SEO which has flagged up quite a significant amount of 301 redirects on images/css/js and even links to other parts of my website.

example of this would be :

Address : http://c-elec.co.uk/welcome/gourmet

Content : text/html

Status code : 301

Status : Permanently moved

Every 301 has the same error and content type even if its an image,js file or css always having their redirect URI has the same as their original address.

I am not sure if this is a problem with how my project is structure or a server issue but other sites i've checked on the server have no 301 when scanned. I'm using php/codeigniter with foundation 5 on a NGINX server.

Thanks for any feedback

  • 写回答

1条回答 默认 最新

  • drnf09037160 2015-07-27 09:10
    关注

    It seems, that some of your resources are included using http://www.example.tld. These requests are redirected to http://example.tld automatically, maybe by some rewrite rule or whatever.

    So this request: http://www.c-elec.co.uk/js/app.js is redirected to http://c-elec.co.uk/js/app.js

    You need to find out where this redirect is done or include your resources with http://example.tld.

    BTW: You are including JS code after the closing HEAD and after the closing BODY tag.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 微信小程序协议怎么写
  • ¥15 c语言怎么用printf(“\b \b”)与getch()实现黑框里写入与删除?
  • ¥20 怎么用dlib库的算法识别小麦病虫害
  • ¥15 华为ensp模拟器中S5700交换机在配置过程中老是反复重启
  • ¥15 java写代码遇到问题,求帮助
  • ¥15 uniapp uview http 如何实现统一的请求异常信息提示?
  • ¥15 有了解d3和topogram.js库的吗?有偿请教
  • ¥100 任意维数的K均值聚类
  • ¥15 stamps做sbas-insar,时序沉降图怎么画
  • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看