如何获取phpbb中url中的论坛标题?
我试图在网址中包含论坛标题,例如,我的论坛标题“grass is green”在网址中显示为 www.myforum/forum/grass-is-green.php 而不是 www.myforum/forum/viewforum .php?f=5
我已尝试执行此处给出的更改 http ://www.phpbb.com/community/viewtopic.php?f=70&t=1053375 但更改未反映出来,网址仍然显示为以前
请帮助我..提前致谢
I am trying to have forum title in the url so for eg, my forum title "grass is green" shows ups in the url as www.myforum/forum/grass-is-green.php and not www.myforum/forum/viewforum.php?f=5
I have tried doing the changes given here http://www.phpbb.com/community/viewtopic.php?f=70&t=1053375 but the changes are not reflected and the url stills appears as before
Please help me out .. thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您链接到的 mod 不会影响 URL,它会查找标题并更改帖子中链接的文本。您正在寻找的是一个重写/重定向 URL 的 SEO 模组。快速浏览一下 phpBB 网站,我看到了几个,但它们似乎有问题。如果主题被重命名,这些类型的 mod 也可能会崩溃。原始的“...&t=250”链接可以工作,但“.../old_topic_name/”会损坏。
引用 phpBB 支持团队成员之一的话:“我们不推荐任何 SEO 模组。没有真正的理由去搞乱这样的 URL。搜索引擎按原样对它们进行索引。”
希望有帮助!
The mod you linked to doesn't affect the URL, it looks up the title and changes a link's text in a post. What you are looking for is a SEO mod that rewrites / redirects URLs. A quick look through the phpBB site and I see a couple, but they seem to have issues. These types of mods can also break if a topic gets renamed. The original "...&t=250" link would work, but the ".../old_topic_name/" would break.
To quote one of the phpBB Support team members: "We do not recommend any SEO mods. There is no real reason to mess with the URLs like that. The search engines index them fine as-is."
Hope that helps!