2012-03-31 88 views

回答

0

我假設你使用apache作爲web服務器。

嘗試類似的東西,並添加:

RewriteRule ^shopexd.asp?id=([0-9]+)&(.*)$ /product.php?id_product=$1 [QSA,L] 

到.htaccess文件。

1

這工作,如果你從1.2更新到1.6爲例:

RewriteCond %{QUERY_STRING} (^|&)?id_product=(\d+)(&|$) 
RewriteRule ^product\.php$ /index.php?id_product=%2&controller=product [R=301,L] 
相關問題