<div dir="ltr"><div class="gmail_quote">On Tue, Jul 13, 2010 at 5:54 PM, Graeme Geldenhuys <span dir="ltr"><<a href="mailto:graemeg.lists@gmail.com">graemeg.lists@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
While we are on the topic of CGI and Apache. Any idea how to tell<br>
Apache that a specific file is a CGI program, even though that file<br>
has no file extension like the obvious .cgi suffix? This is not to<br>
serious - I think Google accepts URLs with a '.' (dot) in the path.<br>
eg: <a href="http://www.mydoman.com/mmaths/project1.cgi/myparam" target="_blank">http://www.mydoman.com/mmaths/project1.cgi/myparam</a><br>
<br>
<br></blockquote><div><br>in .htacces with rewrite mode is enabled, it easy to convert new style to old one<br><br>RewriteEngine on<br><br></div>RewriteRule ^$ project1.cgi [L]<br>RewriteCond %{REQUEST_FILENAME} !-f<br>
RewriteCond %{REQUEST_FILENAME} !-d<br>RewriteRule (.*) project1.cgi?action=$1 [QSA,L]<br>RewriteRule ^project1.cgi$ project1.cgi<br><br>And you have many examples on internet to understand
RewriteEngine<br><br>Thanks<br></div>-- <br>Zaher Dirkey<br>
</div>