mod_rewrite: Rewriting / to cgi script

Posted by Jens Björnhager on Server Fault See other posts from Server Fault or by Jens Björnhager
Published on 2009-11-10T11:01:41Z Indexed on 2010/04/15 21:04 UTC
Read the original article Hit count: 393

Filed under:
|
|
|
|

I have a vhost in which I would like to rewrite / to something like /cgi-bin/script?123. I thought something like this would work, but this rewrites to "/index.html/ somehow.

RewriteEngine On
RewriteRule ^/$ /cgi-bin/script.cgi?123 [L]

How can you do this?

© Server Fault or respective owner

Related posts about apache

Related posts about apache2