I have a small test executable, written in C not script, that works in lighttpd and Apache. However, in Apache, I don't get PATH_INFO data. PATH_INFO prints NULL, PATH_TRANSLATED is empty and SCRIPT_NAME prints the path to my script (which is correct).

I guess it's getting rewritten before Apache handles the info but don't know. In any case, I need to be able to extract everything after the URL, as in example.com/page1/info . I prefer, at least, to get page1/info from somewhere.

I question whether I should use mod_rewrite at all and should use some other method or mod. The web app this will run can either handle all requests by itself, or I can divide it up to handle individual requests, such as example.com/page1, example.com/page2, etc.

It's been so long since I've touched Apache that I'm sure I'm doing something wrong.

My host provider says they "believe" the problem may lie with the app not being compiled on their server. The program runs and does everything it's supposed to, it just can't seem to pull out the env data for PATH_INFO. I can get the IP which negates what they say? Don't know.