-1
我搜索並嘗試了幾種可能的解決方案。縮短動態網址的問題
我開始:
http:// example.com/ 729/start-page.asp?cid=4004 http:// example.com/ 729/start-page.asp?cid=7916
,並試圖爲:
http:// example.com/ johns-start-page http:// example.com/ judys-start-page
或者如果可能的話:
http:// johns-start-page.example.com/ http:// judys-start-page.example.com/
到目前爲止我有:
RewriteEngine on RewriteCond %{QUERY_STRING} ^cID=4004$ RewriteRule ^729\.asp$ /johns-start-page [NC,R=301,L] RewriteCond %{QUERY_STRING} ^cID=7916$ RewriteRule ^729\.asp$ /judys-start-page [NC,R=301,L]
@Jon Lin,試過你的第一個解決方案,但它被忽略了。不確定{THE_REQUEST}是否是佔位符或 RewriteCond%{THE_REQUEST}是否逐字進入代碼。 – fitcher
這是我在SO上的第一個問題。我現在看到,這是一個嚴重問題或-2投票平原蹩腳問題。我本可以在更好的問題上使用建議,而不是踢屁股。非常感謝。 – fitcher