【问题标题】:how can i hide the part of url using .htaccess如何使用 .htaccess 隐藏 url 的一部分
【发布时间】:2012-10-23 21:05:40
【问题描述】:

我正在尝试从我的 url 中删除部分,这里是 url "http://example.com/custom_joomla_template-2.5.6/about-us/portfolio/itemlist/category/3-category-2 "

现在我想从 url 中删除“itemlist/category/”,以便 url 可以查看链接 “http://example.com/custom_joomla_template-2.5.6/about-us/portfolio/3-类别 2"

我正在使用 joomla 的默认功能,即 SEF url,我需要进一步简化它我是 htaccess 的新手

请提供学习如何为 .htaccess 文件编写规则的链接

请帮忙

【问题讨论】:

  • 你需要在组件中真正为这个功能编辑 router.php

标签: .htaccess mod-rewrite joomla rewrite


【解决方案1】:

最简单的事情就是在某个地方创建一个直接指向类别 2 的菜单链接。这将正确设置网址。它还将摆脱 3-

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-10-06
    • 2016-06-05
    • 1970-01-01
    • 2014-02-12
    • 1970-01-01
    相关资源
    最近更新 更多