如何启用 opencart Seo Url [英] how to enable opencart Seo Url

查看:103
本文介绍了如何启用 opencart Seo Url的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

过去 3 天我一直在使用我的打开购物车网站.我正在使用 opencart 2.3.0.2.Seo url 选项对我不起作用.下面是 .htaccess 文件和 opencart 网站文件的路径.

I am struggling with my open cart website from last 3 days. I am using opencart 2.3.0.2. Seo url option is not working for me. Below is the path for .htaccess file and opencart website file.

.htaccess 路径:/var/www/opencart/upload应用程序文件:/var/www/opencart/upload

.htaccess path : /var/www/opencart/upload application file : /var/www/opencart/upload

下面是我的 htaccess 文件.

below is my htaccess file.

RewriteEngine On
RewriteBase /
RewriteRule ^sitemap.xml$ index.php?route=extension/feed/google_sitemap [L]
RewriteRule ^googlebase.xml$ index.php?route=extension/feed/google_base [L]
RewriteRule ^system/download/(.*) index.php?route=error/not_found [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]

我尝试使用以下选项更新 RewriteBase

I have tried by updating RewriteBase with following options

RewriteBase /opencart/upload/
RewriteBase /upload/

预先感谢您的帮助

推荐答案

您必须在系统设置中启用 SEO URL.请看下面的截图:进入系统>设置

You have to enable SEO URLs in the System Setting. Please see the below screenshot: Go to System > Setting

  1. 点击编辑图标.
  2. 点击服务器标签.

点击此处

这篇关于如何启用 opencart Seo Url的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆