opencart 3伪静态seo url设置教程
2024-08-24 13:50:41
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
最新文章
- PHP 进程详解
- mysql 用source 导入数据库报错
- php.ini 不生效问题extension
- TreeView 读取 xml 显示节点
- STM32的I2C通信
- Django升级1.6之后出现“Bad Request (400)”错误的解决方案
- cocos2d中两种移动的算法
- 如何在Azure上动态配置IP地址
- python关键字
- java.math.BigDecimal类
- 网站环境apache + php + mysql 的XAMPP,如何实现一个服务器上配置多个网站?
- ubuntu 设置主屏和副屏
- 了解 : http请求过程
- Python内置函数(47)——vars
- 《T-SQL查询》读书笔记Part 2.执行计划
- Fleck For Web Socket
- kubernetes云平台管理实战: 自动加载到负载均衡(七)
- npm安装less和less-loadernpm或者stylus和stylus-loader
- PostgreSQL自学笔记:5 数据类型和运算符
- CEF C++调用前端js方法展示传递过来的图片数据
热门文章
- Sentinel: 接入控制台实时查看监控数据
- 关于Adobe Premiere Pro视音频不同步的解决方法
- Task和async/await详解
- django实战(三)--删除和批量删除
- Mac PyCharm激活/激活码
- redis启动出现错误 can't chdir ...
- Delphi 10.3.2 社区版的安装
- Python 3 的 int 类型详解(为什么 int 不存在溢出问题?)
- 使用VS Code远程开发
- ​ Markdown