0
你能告訴我爲什麼這個重寫不會傳遞第二個值嗎? TT值被傳遞給%1,但名不在%2URL重寫不起作用
RewriteBase/
RewriteRule ^wedding-hair-and-make-up-images-([^/]*)-(.*)\.php$ franchisee-gallery.php?franchise_name=$1&id_tt=$2 [L]
RewriteCond %{THE_REQUEST} ^(GET|POST|HEAD|TRACE)\ /franchisee-gallery.php
RewriteCond %{QUERY_STRING} name=([^\&]*)
RewriteCond %{QUERY_STRING} tt=(.*)
RewriteRule ^franchisee-gallery.php$ wedding-hair-and-make-up-images-%1-%2.php? [R,L]
它不工作。我得到了一個回覆URL:wedding-hair-and-make-up-images-Patsy-31.php?franchise_name = Patsy&id_tt = 31 – user974435 2012-07-12 14:11:38
是的,我想念?在Rule的末尾,清理QueryString – anibalsolon 2012-07-12 14:16:52
仍然不起作用 – user974435 2012-07-12 14:19:05