1
這可能是一個簡單的問題。但我不擅長.htaccess重定向規則,所以我打開了一個問題。.htaccess URL重定向
我想重定向這樣的:
如果網址,如:www.mydomain.com/image/12345
,www.mydomain.com/image/12346
。
做一個重定向,如:www.mydomain.com/products/image/12345
,www.mydomain.com/products/image/12346
。 (添加/products/
的頁面,如果URL這樣結束image/number
並沒有/products/
本身。)
我已經不喜歡一些重定向規則:在.htaccss
RewriteRule ^(products/image)/(\d+)/?$ products/image?photo=$2
。謝謝。