Joomla URL:使用格式:www.xyz.com/section/category/article
我是 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
就像我在 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.