opencart 3已经为我们做好了url伪静态功能,我们只要做一些简单的设置就能实现seo url,首先开启伪静态功能,看看文件.htaccess事发后有存在如下规则,如果没有需要先添加下面的代码

RewriteEngine On
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]

  

1.联系我们这个页面比较特殊www.abc.com/index.php?route=information/contact伪静态成www.abc.com/contact
这样设置Query:information/contact,keyword:contact
还有account页/index.php?route=account/account伪静态成/account
这样设置Query:account/account,keyword:account

2.信息页面/index.php?route=information/information&information_id=4伪静态成/about_us
这样设置Query:information_id=3,keyword:about_us

3.分类页/index.php?route=product/category&path=34伪静态成/mp3-players
这样设置Query:category_id=34,keyword:mp3-players

4.产品页/index.php?route=product/product&product_id=47伪静态成hp_lp3065
这样设置Query:product_id=47,keyword:hp_lp3065

最新文章

  1. PHP 进程详解
  2. mysql 用source 导入数据库报错
  3. php.ini 不生效问题extension
  4. TreeView 读取 xml 显示节点
  5. STM32的I2C通信
  6. Django升级1.6之后出现“Bad Request (400)”错误的解决方案
  7. cocos2d中两种移动的算法
  8. 如何在Azure上动态配置IP地址
  9. python关键字
  10. java.math.BigDecimal类
  11. 网站环境apache + php + mysql 的XAMPP,如何实现一个服务器上配置多个网站?
  12. ubuntu 设置主屏和副屏
  13. 了解 : http请求过程
  14. Python内置函数(47)——vars
  15. 《T-SQL查询》读书笔记Part 2.执行计划
  16. Fleck For Web Socket
  17. kubernetes云平台管理实战: 自动加载到负载均衡(七)
  18. npm安装less和less-loadernpm或者stylus和stylus-loader
  19. PostgreSQL自学笔记:5 数据类型和运算符
  20. CEF C++调用前端js方法展示传递过来的图片数据

热门文章

  1. Sentinel: 接入控制台实时查看监控数据
  2. 关于Adobe Premiere Pro视音频不同步的解决方法
  3. Task和async/await详解
  4. django实战(三)--删除和批量删除
  5. Mac PyCharm激活/激活码
  6. redis启动出现错误 can't chdir ...
  7. Delphi 10.3.2 社区版的安装
  8. Python 3 的 int 类型详解(为什么 int 不存在溢出问题?)
  9. 使用VS Code远程开发
  10. ​ Markdown