【发布时间】:2015-05-27 15:32:07
【问题描述】:
我有 1 个旧的 index.php?etc_etc URL 我想转发到一个特定的 URL,但是 301 重定向不起作用。
我的重写条件是:
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)\.html$ /$1 [L,R=301]
我一直在使用这种格式来重写 URL。
redirect 301 /index.php?page=shop.product_details&flypage=flypage.tpl&product_id=948&category_id=114&option=com_virtuemart&Itemid=69 /739619-5004s-garrett-gtp38r-ball-bearing-turbo-kit-99-5-03-7-3l-power-stroke
这不起作用。我想是因为 Magento 使用 index.php 作为主页。
如何将该 URL 永久重定向到新的。
【问题讨论】: