Php OpenCart SEO即使在启用重写模式且SEO URL=yes的情况下也无法工作

Php OpenCart SEO即使在启用重写模式且SEO URL=yes的情况下也无法工作,php,apache,.htaccess,opencart,opencart2.x,Php,Apache,.htaccess,Opencart,Opencart2.x,我的opencart安装了ubuntu 14.04,我的apache配置文件是: <VirtualHost *:80> ServerAdmin webmaster@localhost ServerName example.com ServerAlias www.example.com DocumentRoot /var/www/example.com/ <Directory /var/www/exa

我的opencart安装了ubuntu 14.04,我的apache配置文件是:

<VirtualHost *:80>
        ServerAdmin webmaster@localhost
        ServerName example.com
        ServerAlias www.example.com
        DocumentRoot /var/www/example.com/
        <Directory /var/www/example.com>
                DirectoryIndex index.php
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all
                Require all granted
        </Directory>
        <ifmodule mod_evasive20.c>
 DOSHashTableSize 3097
 DOSPageCount 20
 DOSSiteCount 100
 DOSPageInterval 1
 DOSSiteInterval 1
 DOSBlockingPeriod 10
 DOSLogDir /var/log/mod_evasive
 #DOSWhitelist 127.0.0.1
</ifmodule>
        ErrorLog /var/log/example-error.log

        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.

        CustomLog /var/log/example-access.log combined
</VirtualHost>

这应该是正确的安装获得搜索引擎优化友好的网址,但它的工作不好。。有什么帮助吗?

设置搜索引擎优化URL

  • 将搜索引擎优化关键词添加到所有产品和类别(唯一) 关键词)
  • 打开SEO URL-进入系统>设置>服务器>使用SEO URL。只有你 在默认存储上获取此选项
  • 编辑.htaccess文件
  • 重写规则^([^?]*)index.php?路由=$1[L,QSA]

    另外,请参考链接将SEO url更改为否
    从系统>设置>服务器

    我提到我做了所有这些,但什么也没发生。可能是我的opencart安装有问题,我会尝试一个新的,看看是否有效。
    Options +FollowSymlinks
    Options -Indexes
    <FilesMatch "\.(tpl|ini|log)">
     Order deny,allow
     Deny from all
    </FilesMatch>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L]
    RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L]
    RewriteRule ^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]
    
    http://example.com/index.php?route=product/search&search=asdsa&search_type=0&limit=6
    
    http://example.com/index.php?route=information/contact