简体   繁体   English

如何从 joomla url 中隐藏 id

[英]how to hide an id from a joomla url

i have installed a compoenet from that it generates url like this我已经安装了一个组件,它会生成这样的 url

 http://localhost/index.php/home/abc?id=23

i want to hide the id from that url.我想从那个 url 中隐藏 id。 is there any posibility to pass the id but not visible on url ?是否有可能传递 id 但在 url 上不可见?

Go to your site Global configuration > site tab > SEO Settings > Enalble Adds Suffix to URL option and save转到您的站点全局配置 > 站点选项卡 > SEO 设置 > 启用将后缀添加到 URL 选项并保存

Hope this helps you.希望这对你有帮助。

Works perfectly on Joomla 3.1.5 and 3.2.在 Joomla 3.1.5 和 3.2 上完美运行。 Edit "components/com_content/router.php"编辑“components/com_content/router.php”

There are two places need to do change, one near the top, one in the middle Replace this:有两个地方需要做改动,一个靠近顶部,一个在中间,替换这个:

  $advanced = $params->get('sef_advanced_link', 0);

With this:有了这个:

  $advanced = $params->get('sef_advanced_link', 1);

  - From: ->where($db->quoteName(‘alias’) . ‘ = ‘ . 
  $db->quote($db->quote($segment)));
  - To: ->where($db->quoteName(‘alias’) . ‘ = ‘ . $db->quote($segment));

Hopefully help you.希望能帮到你。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM