mod_rewrite: Rewriting / to cgi script [closed]
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this questionIs 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?
精彩评论