Google爬网是否包含/要求PHP中的文件? [英] Does Google crawl include/require files in PHP?

查看:79
本文介绍了Google爬网是否包含/要求PHP中的文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是php的新手,我正在使用具有导航栏的php在一个网站上工作.这个网站将会很大(超过30页),如果我需要更改导航栏,我不想在每个页面上都更改导航栏.

I am new to php and I am working on a website using php that has a navigation bar. This website is going to be fairly large (above 30 pages) and I don't want to have to change my navigation bar on every single page if I ever find a need to change it.

我还希望Google的Spider能够跟踪导航栏上的链接.如果我将导航栏放在包含文件中,Google是否会跟踪包含文件内的链接?包含文件是在每个页面上具有相同导航栏的正确方法吗?任何人都可以提供的任何帮助将不胜感激!

I also want Google's spider to follow the links on the navigation bar. Does Google follow links inside of an include file if I were to put the navigation bar in an include file? Is an include file the right way to have the same navigation bar on every page? Any help that anybody can offer would be greatly appreciated!

推荐答案

搜索引擎看不到您的PHP代码.他们看到其他人看到的内容,以及代码的最终HTML输出.因此,使用include不会影响他们查找和抓取该内容的能力.

Search engines don't see your PHP code. They see what everyone else sees, the final HTML output of your code. So using includes wont affect their ability to find and crawl that content.

这篇关于Google爬网是否包含/要求PHP中的文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆