mod_rewrite: Rewriting / to cgi script [closed]
-
19-09-2019 - |
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?
Solution
I received the solution at https://serverfault.com/questions/83199/mod-rewrite-rewriting-to-cgi-script
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow