什么 .htaccess 重定向对 Google 机器人有影响?

发布于 2024-12-08 18:00:29 字数 413 浏览 1 评论 0原文

我使用 php codeigniter 框架制作了一个网站 xyz.com。本网站有模块,所以采用模块化扩展。现在,当这个网站上线时,每个链接都显示index.php。因此,我们可以使用 .htaccess 来执行 modrewrite 命令。到目前为止,我的知识已经够酷了。现在,当我对 SEO 有深入了解的朋友看到​​我的网站链接时,他告诉我你的网站不会在谷歌中排名靠前(排名较低)。

他的理由是——你的每个请求都是通过index.php传递的。当谷歌抓取您的网站时,它将再次重定向到index.php,这是主要缺点。由于他对 codeigniter 的了解不多,所以他要求尽快修复这个 index.php 问题。所以我想知道

他给出了有效的理由吗?如果是的话...那么我该如何解决这个问题。

也欢迎您提出与此问题相关的任何内容,因为我可能没有提出完整的问题。

I made one website xyz.com using php codeigniter framework. This website has modules, so modular extension is used. Now when this website is made live, every link shows index.php. So for this we can use .htaccess for modrewrite command. Till now my knowledge was cool enough. Now when my friend who has good knowledge of SEO saw my website links, he told me that your website will not come above(lower ranks) in google.

His reason is - your every request is pased through index.php. When google crawls your site, it will be redirected again to index.php which is main drawback. As he didnt have much knowledge about codeigniter, he told to fix this index.php issue as soon as possible. So I wanna know

IS HE GIVING A VALID REASON?? if yes...so how can I solve this problem.

Anything related to this issue from your side is also welcomed, as I may not have asked complete question.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

猫腻 2024-12-15 18:00:29

好吧,在你发表评论之后我可以说你的朋友错了。 Google 机器人永远不会在同一页面上重定向(在您的情况下为index.php)。当然,在每个页面网址中都有“index.php”并不是很好,因为您会丢失重要的字符,否则这些字符可用于放置关键字。

也就是说,您的网站将正常被索引。事实上,许多基于 Joomla 的网站都具有与您在本网站上看到的相同的行为 (parlaritaliano.它),它在 Google 上的索引非常好。

无论如何,我建议您替换(使用.htaccess)每个网址中的index.php,因为从SEO 的角度来看它更好。我再说一遍......更好的是,它不会导致任何 Google 机器人循环。

Well, after your comment I can say that your friend is wrong. Google bot will never be redirected on the same page (index.php in your case). Of course is not very good that in each page url you have the "index.php" because you are losing important chars which otherwise can be used to put keywords.

Said that, your site will be indexed normally. Infact, many Joomla-based websites have the same behavior as you can see on this website (parlaritaliano.it) which is very well indexed on Google.

Anyway, I advice you to replace (using .htaccess) the index.php in every of your urls because it is better from a SEO point of view. I repeat...better, it does not will cause any Google bot loop.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文