-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