0

What I need to get working:

Request:

http://site.com/ipdb/remote&url=http%3A%2F%2Fsite.com%2F&shortname=X

Rule:

RewriteRule ^remote&url=(.+?)&shortname=(.+?)$ /ipdb/?request=remote-access&url=$1&shortname=$2 [L]

The above rule is not working. Any solution?

What I've working:

Request: http://site.com/ipdb/dwnlds&dl=X

Rule:

RewriteRule ^dwnlds&dl=(.+?)$ /ipdb/?request=downloads&download=$1

4

1 回答 1

0

尝试使用QSA标志

AllowEncodedSlashes On

RewriteRule ^ipdb/remote$ /ipdb/?request=remote-access [B,QSA,L]

好的,我想我现在得到了你需要的东西。您应该能够完全隐藏 request=remote-access 做类似的事情。

RewriteRule access/(.*)/(.*) /ipdb/?request=remote-access&url=$1&shortname=$2&%{QUERY_STRING}$ [L]

然后你应该能够将链接作为http://localhost/access/mysite.com/ppl

于 2013-06-27T21:57:36.227 回答