我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

使用.htaccess - opencart项目重写URL

I'm looking for a solution for below URL rewrite rule

URL : http://localhost/mysite/abc/index.php?route=product/category&path=1

this has to be rewritten to

http://localhost/mysite/index.php?route=product/category&path=1&store=abc

I have tried with the following

RewriteRule ^([^/]*)/([^/]*)$ $2&store=$1 [L]

but it ended up in /mysite/index.php&store=abc

couldn't get the full $2

近期文章

  • 保存到联机数据库和Localhost数据库
  • PHP - 显示图像 - 就像Google图像搜索一样
  • Php grid lite。 无法在datatable中查看mysql数据
  • 默认的php.ini文件和更改
  • PHP将SHA转换为int以生成随机数
  • 正则表达式在中心采取字符串
  • 修剪功能不起作用Yii
  • 2D json数组错误地转换为字符串
  • php json decode返回带有小写字段名称的数组
  • 从现有表条目中选择带有第一个选项的选项
  • “strtotime('明天') - 时间()”或“strtotime('明天') - strtotime('now')”将不会给出正确的时间,直到即将到来的午夜
  • 一旦提交,PHP登录脚本将不会直接登录成功页面
  • Codeigniter活动记录类(从哪里选择)
  • 创建相同的缩略图,一种方式更慢......为什么?
  • 当body不为空时,SoapClient在HTTP 500错误时返回空响应
  • 设计模式 - 事件和通知
  • 关于错误参数PDO的MySQL和PHP
  • 分页CodeIgniter覆盖基本URL
  • 回显查询不起作用(返回“资源ID#18”)
  • HTML5的新特性Localstorage有什么特别的用途?

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华