利用可能なすべての Q&A を読みましたが、解決策が見つかりませんでした。
私はワードプレスを使用してオンラインストアを運営しています..現在、支払いゲートウェイオプションのためにopencartに移動しています。しかし、私は301 URLリダイレクトの問題を抱えています..
http://website.com/2011/01/my-product-name/
に
http://website.com/my-product-name.html
私のhtaccessコード:
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#### Rewrite Code ####
RewriteRule ^(.*)\?*$ index.php?_route_=$1 [L,QSA]
Redirect 301 ^/2011/01/my-product-name/$ http://website.com/my-product-name.html
リダイレクトをリダイレクトしようとした後
http://website.com/my-product-name.html/?_route_=2011/01/my-product-name/
なぜその追加なのかわかりませんか?route = inurl および他のすべてのリンク?
利用可能な解決策はありますか?