Ok i am trying to set up mod_rewrite for my server and it seems like whatever way i try to get this to work nothing happens. Here is what i have, sensitive info is replaced by ...
<VirtualHost ...> ## IP of the server i want to rewrite
RewriteEngine On
Options +ExecCGI
ServerAdmin pete@....com
DocumentRoot /home/virtual/.../html
ServerName ....com
ErrorLog /var/log/.../error_log-ssl
TransferLog /var/log/.../access_log-ssl
RewriteMap redir prg:/home/virtual/.../html/redir.pl
RewriteCond %{REQUEST_URI} searchk\.cgi$
RewriteCond %{QUERY_STRING} !=""
RewriteRule ^(.+).cgi$ ${redir:$1-%{QUERY_STRING}.html} [L]
</VirtualHost>
<VirtualHost ...> ## IP of the server i want to rewrite
RewriteEngine On
Options +ExecCGI
ServerAdmin pete@....com
DocumentRoot /home/virtual/.../html
ServerName ....com
ErrorLog /var/log/.../error_log-ssl
TransferLog /var/log/.../access_log-ssl
RewriteMap redir prg:/home/virtual/.../html/redir.pl
RewriteCond %{REQUEST_URI} searchk\.cgi$
RewriteCond %{QUERY_STRING} !=""
RewriteRule ^(.+).cgi$ ${redir:$1-%{QUERY_STRING}.html} [L]
</VirtualHost>