Joomla URL:使用格式:www.xyz.com/section/category/article

发布于 2024-09-11 14:36:31 字数 229 浏览 1 评论 0原文

我是 Joomla 的新手,并且已打开 SEF URL。但是,问题是它以以下格式返回我的链接:

www.site.com/category/article

我希望它以以下格式返回文章:

www.site.com/section/category/article

我搜索过Stack Overflow 并没有找到答案...想知道是否有人可以提供帮助。

提前致谢。

I'm new to Joomla, and have switched on SEF URLs. However, the issue is that it returns my links in the format:

www.site.com/category/article

I'd like it to return articles in the format:

www.site.com/section/category/article

I've searched Stack Overflow and haven't found the answer...wondering if anyone could help.

Thanks in advance.

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

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

发布评论

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

评论(1

偏爱自由 2024-09-18 14:36:31

就像我在 http://docs.joomla.org/SEF_URLs_in_Joomla!_1.5< /a> 您必须将 htaccess.txt 更改为 .htaccess。这很清楚,因为 URL 格式是使用 mod_rewrite 模块格式化的。

如果您想自己完成,我建议您阅读 http://httpd .apache.org/docs/2.0/mod/mod_rewrite.html 并了解如何使用 ReWrite-Rules。然后您可以按照自己的喜好自定义 URL。
重写规则位于 .htaccess 文件中。

Like I've read at http://docs.joomla.org/SEF_URLs_in_Joomla!_1.5 you had to change the htaccess.txt to .htaccess. This is clear, because the URL-format is formatted with the mod_rewrite module.

If you want to do it by yourself, I recommend you reading http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html and learn how to use ReWrite-Rules. Then you can customize your URLs how you like.
The Rewrite-Rules are in the .htaccess file.

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