具体的301重定向

时间:2013-02-14 00:58:48

标签: redirect opencart

我想在.htaccess中执行以下301重定向: www.mysite.com/products/xxxxxx 至 www.mysite.com/index.php?route=product/product&product_id=xxxxxx

其中" xxxxxx"是我的产品ID

请帮助:)

1 个答案:

答案 0 :(得分:0)

//301 Redirect Entire Directory
RedirectMatch 301 
www.mysite.com/products/(.*) 
www.mysite.com/index.php?route=product/product&product_id=$1