0

所以我想重写这个网址:

http://localhost/mock/foo.php?lang=eng&userID=2

到:

http://localhost/apiMethod.pl?lang=eng&userID=2

因此,当我在浏览器中调用http://localhost/apiMethod.pl?lang=eng&userID=2时,它实际上会转到http://localhost/mock/foo.php?lang=eng&userID=2

4

1 回答 1

1
RewriteRule ^apiMethod\.pl$ mock/foo.php [QSA]
于 2012-04-23T10:44:34.130 回答