私は自分の会社のサブドメインに opencart をhttp://store.example.inのようにインストールしました。つまり、メイン サイトを邪魔したくなかったので、メイン ドメインの下にサブドメインを作成しました。残念ながら、管理パネル (システム | 設定 | サーバー | SEO URL を使用 -> はい) で有効にした後でも、きれいな SEO フレンドリーな URL を取得できません。また、ファイルをインストール ルートに追加しました.htaccess
。その内容の一部は次のとおりです。
# SEO URL Settings
RewriteEngine On
# If your opencart installation does not run on the main web folder make sure you folder it does run in ie. / becomes /shop/
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]
私は物事をに変更しようとしましたRewriteBase /
が、そこにRewriteBase /store.example.in/
も
RewriteBase /store/example.in/
行きません。
私は答えを探してみましたが、これも含むソリューションへのリンクはほとんど見つかりませんでした: Opencart .htaccessの問題 もあまり役に立ちませんでした。