开发者

mod_rewrite: Rewriting / to cgi script [closed]

Closed. This question is off-topic. It is not currently accepting answers.

Want to improve this question? Update the question so it's on-topic for Stack Overflow.

Closed 10 years ago.

Improve this question

Is there any way to rewrite a GET / to a cgi script with a parameter? Basically redirect / to /cgi-bin/scipt.cgi?123.

This does not work:

RewriteEngine On
RewriteRule ^/$ /cgi-bin/sc开发者_如何学编程ript.cgi?123 [L]

Instead it somehow rewrites / to /index.html/

Any way of doing this?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜