搜索
开启辅助访问 切换到宽版

QQ登录

只需一步,快速开始

扫一扫,访问微社区

注册 找回密码
楼主: nowbe
打印 上一主题 下一主题

OpenCart完美伪静态方案Version 1.5.5.1实例方案

  [复制链接]
楼主
发表于 2013-11-2 14:09:41 | 显示全部楼层
不行啊,到处都是“请求的页面不存在”
回复 支持 反对

使用道具 举报

沙发
发表于 2013-11-2 15:20:12 | 显示全部楼层
原来是还差一点,/catalog/controller/common/seo_url.php原来的第9、10行是
                if (isset($this->request->get['_route_'])) {
                        $parts = explode('/', $this->request->get['_route_']);
改成
                if (isset($this->request->get['route'])) {
                        $parts = explode('/', $this->request->get['route']);

就可以了
回复 支持 反对

使用道具 举报

板凳
发表于 2013-11-3 00:38:09 | 显示全部楼层

  1. # .htaccess
  2. ...
  3. # SEO URL Settings
  4. RewriteEngine On
  5. # If your opencart installation does not run on the main web folder make sure you folder it does run in ie. / becomes /shop/

  6. RewriteBase /
  7. RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L]
  8. RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L]
  9. RewriteRule ^download/(.*) /index.php?route=error/not_found [L]
  10. RewriteCond %{REQUEST_FILENAME} !-f
  11. RewriteCond %{REQUEST_FILENAME} !-d
  12. RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
  13. RewriteCond %{REQUEST_URI} !^index.php
  14. RewriteRule ^([^?]*) index.php?route=$1 [L,QSA]
  15. #...

复制代码

回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

站长推荐 上一条 /1 下一条

QQ|手机版|OpenCart - 中文官方网站 ( 蜀ICP备09033774号|人工智能

GMT+8, 2024-5-2 22:30 , Processed in 0.060304 second(s), 19 queries , Gzip On.

快速回复 返回顶部 返回列表