如何在我的网址中写入多个参数?
我不想在 RewriteRule 上写入所有参数,这很复杂且不容易匹配我网站中的所有 url,我想为每个参数写一行,但它不起作用。
http://www.laji.com/p/hello-p-1002.html
(http://www.laji.com/index.php?main_page=product_info&products_id=1002)
RewriteRule ^(.*)-p-(\d+).html$ index.php?main_page=product_info&products_id=$2 [QSA,L]
http://www.laji.com/fr/p/hello-p-1002.html
(http://www.laji.com/index.php?main_page=product_info&products_id=1002&language=fr)
RewriteRule ^/([\w]{2})(.*)$ $2?language=$1 [QSA,L]
http://www.laji.com/fr/c/shoe-c10/
(http://www.laji.com/index.php?main_page=index&cPath=10&language=fr)
RewriteRule ^(.*)-c(\d+)(.*)$ index.php?main_page=index&cPath=$2 [QSA,L]