dongshao8566 2016-06-17 17:28
浏览 61
已采纳

PHP代码及其对SEO的影响[关闭]

So in order to minimalize code and optimize speed of my website I have used much PHP code. I used it to contain the entirety of the header and footer of my website.

    <?php include('header.php') ?>
    ...Content...
    <?php include('footer.php') ?>

In doing so I had trapped the title meta-tag within a PHP file, so in order to change the Title for each unique page I used a PHP variable placed above the header to adjust it like so:

    <?php $title="Page Specific Title" ?>
    <?php include('header.php') ?>
    ...Remainder of site.

I have tested this out and it clearly works within the browser. However, now that I am looking into SEO for my website, I am curious.

Does using PHP to populate SEO related meta tags have a negative impact on the SEO of the page?

If so, my follow up question would be what way can I optimize the speed of the website without negatively impacting the SEO of the individual pages? Would JavaScript work or am I confined to HTML?

Thank you in advance for any that can help.

  • 写回答

1条回答 默认 最新

  • duanjiao4763 2016-06-17 17:35
    关注

    Search engines visit sites almost like a user, by which I mean a page is prepared by the server and sent to them. PHP is whats running on your server to create that page, including setting the title to the value of the variable. So what the search engine get is the output of your PHP with the variable replaced with the value.

    So no, using PHP will not effect your SEO.

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

报告相同问题?

悬赏问题

  • ¥60 pb数据库修改或者求完整pb库存系统,需为pb自带数据库
  • ¥15 spss统计中二分类变量和有序变量的相关性分析可以用kendall相关分析吗?
  • ¥15 拟通过pc下指令到安卓系统,如果追求响应速度,尽可能无延迟,是不是用安卓模拟器会优于实体的安卓手机?如果是,可以快多少毫秒?
  • ¥20 神经网络Sequential name=sequential, built=False
  • ¥16 Qphython 用xlrd读取excel报错
  • ¥15 单片机学习顺序问题!!
  • ¥15 ikuai客户端多拨vpn,重启总是有个别重拨不上
  • ¥20 关于#anlogic#sdram#的问题,如何解决?(关键词-performance)
  • ¥15 相敏解调 matlab
  • ¥15 求lingo代码和思路