Hi, I have posted a couple of questions and am not getting much help and am not sure if im doing something wrong. Please could somebody tell me if this is possible so I know that I am not wasting my time. I want to redirect pages which are served up by apache to my cgi application which is actually a .exe and pass the url of the requested page as a paramater. Is this possible using mod_rewrite or mod_alias. I have managed to get it to redirect using mod_alias to the same page in another directory. However I want to specify the cgi (in my case inforeplace.exe) with the url passed in so that I can read the file and replace various keywords before sending the output to the screen. Should I use mod_alias for this or mod_rewrite? Please any advice would be great! Thanks
running cgi in exe format I know you will need to compile your code and generate your exe as cgi which can work under apache. easier solution is to write a simple procy php or something like that and call you exe from there. it wont be hard. you need to read http://www.php.net/manual/en/function.exec.php http://php.net/manual/en/function.system.php
I see.. I eventually got it to work. The problem was that I didn't include the cgi module because I was using a cut down version of apache. Such a headache because the code was correct straight away!! Thanks for your comment I was beginning to think people couldn't see my post!