开发者

Will search engines be able to find meta tag information echoed from a PHP script?

开发者 https://www.devze.com 2023-02-15 01:37 出处:网络
I\'m thinking of doing something along the lines of: <?php $title = \"Title of current page\"; include(\"head.php\");

I'm thinking of doing something along the lines of:

<?php
  $title = "Title of current page";
  include("head.php");
?>

<h1>The stuff that goes inside the BODY tag</h1>

<?php
  include("foot.php");
?>

The Keywords and Description Meta tags will be echoed from within the head.php script. If I do that will search engine开发者_JS百科s be able to read the Keywords and Description? And if it does, how badly would it effect search engine rank?


Search engines have no knowledge about your server-side includes. If you open your page in a browser, and select "View Source", you will see exactly what search engines see. That is what you want to consider, not your PHP source code.


isn't that all just server side scripting? What does the final presented file look like? Won't that be the only thing search engines are capable of considering?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号