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/script.cgi?123 [L]

Instead it somehow rewrites / to /index.html/

Any way of doing this?

Was it helpful?
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top