View Full Version : PHP and web hosting w/ cgi-bin

01-13-2004, 12:35 PM

The ISP where I will put my PHP site on obligate all CGIs to be on CGI-BIN directory (is an UNIX server). This obligates me to put all my site (all my PHP files) on CGI-BIN, and my URL site will be something like http://www.omeudominio.pt/cgi-bin/aminhapagina.php. I dont like this. I dont want the CGI-BIN to be on the URL. What I want is that the URL will be something like http://www.omeudominio.pt/aminhapagina.php. I ask you, with your experience, to help me on this. What can I do?

Thank you vey much.


01-13-2004, 03:13 PM
this is an awful answer and you wont like it but

get another host !

you can use mod_rewrite (google for that (assuming the apache module mod_rewrite is available on your server) ) if you wish to use the 'prettier' urls , but a CGI based PHP installation is a shackled , half hearted one one unless perhaps you are getting your hosting for free , enforcing CGI-BIN usage can offer some extra security but nothing more and often only the appearance of such.