【问题标题】:change a GET method URL to SEO URL in Joomla 3 component在 Joomla 3 组件中将 GET 方法 URL 更改为 SEO URL
【发布时间】:2014-02-13 21:09:31
【问题描述】:

我想将一个模块的参数发送到 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>

有可能吗?怎么办?

【问题讨论】:

    标签: url-rewriting seo joomla3.0 joomla-component


    【解决方案1】:

    希望这会有所帮助: http://docs.joomla.org/Supporting_SEF_URLs_in_your_component

    它是关于 router.php 文件的。

    【讨论】:

      猜你喜欢
      • 2014-03-27
      • 1970-01-01
      • 2012-12-02
      • 2011-08-27
      • 1970-01-01
      • 2012-12-12
      • 1970-01-01
      • 2013-05-29
      • 2016-12-26
      相关资源
      最近更新 更多