一些字符串需要幫助htaccess的規則,忽略網址
我使用htaccess的
RewriteRule ^l/([0-9]+)/([0-9]+)/?$ index.php?obj=obj&task=land&city=$1&landId=$2
RewriteRule ^l/([0-9]+)/([0-9]+)$ index.php?obj=obj&task=land&city=$1&landId=$2
現在我的鏈接看起來像這樣
http://www.mysite.com/l/41277/19
有這樣
http://www.mysite.com/obj/task/land/city/41277/landId/19/Best+Restaurant//Sville%20city
鏈接
我應該在我的htaccess上添加什麼,以便m像這樣的Y型連接器將被接受
http://www.mysite.com/l/41277/19/Best+Restaurant//Sville%20city
http://www.mysite.com/l/41247/17/Best+parks/Cold%20Province/Platinum%20city
爲什麼它downvoted? – Snippet
我會接受數十億票反對,但請留下評論。 – Snippet
應該將最後一個鏈接重寫爲什麼? –