gpt4 book ai didi

url-rewriting - 在 Joomla 3 组件中将 GET 方法 URL 更改为 SEO URL

转载 作者:塔克拉玛干 更新时间:2023-11-03 02:45:30 25 4
gpt4 key购买 nike

我想将参数从模块发送到 Joomla 3 中的组件(这是显示其文章的日期)。

所以我像这样通过 GET 方法发送日期:

<a href="http://127.0.0.1/web43/archives.html?date=2014-12-29&option=com_arch&Itemid=10371">
list of articles on 2014/12/29
</a>

一切正常。我可以在 com_arch 组件的模型文件夹中获取 PHP 文件的参数...但是这个 URL 很难看并且对搜索引擎不友好。

我想要这样的东西:

<a href="http://127.0.0.1/web43/archives/2014-12-29">
list of articles on 2/2/2014
</a>

这可能吗?怎么做到的?

最佳答案

希望对您有所帮助: http://docs.joomla.org/Supporting_SEF_URLs_in_your_component

关于 router.php 文件。

关于url-rewriting - 在 Joomla 3 组件中将 GET 方法 URL 更改为 SEO URL,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21765541/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com