mod_rewrite looks like it will work. Someone mentioned using sed to just change all of my links, can't do that. Over a hundred clients have literally thousands of links back to this, I can't ask them to each change hundreds of links. Jay > -----Original Message----- > From: thouck at thouck.com [mailto:thouck at thouck.com] > Sent: Wednesday, January 24, 2001 8:31 AM > To: tclug-list at mn-linux.org > Subject: Re: [TCLUG] php files without an extension > > > I don't see a specific question here, but I'll take a shot anyway. > > I've done something similar to this in the past, configuring apache to > parse .php *and* .html files as PHP. There is a section in your > httpd.conf file that looks like: > > # The following is for PHP4 (conficts with PHP/FI, below): > <IfModule mod_php4.c> > AddType application/x-httpd-php .php4 .php3 .phtml .php > AddType application/x-httpd-php-source .phps > </IfModule> > > I believe fiddling here will solve your problem. Try other extensions > or just "." might work. Remember to restart your webserver so you're > sure it re-read this config file. > > On 23 Jan, Austad, Jay had this nonsense to say: > > Say I have a file called generator.php. To hit this and > pass arguments to > > it, the URL looks something like: > > http://www.something.com/generator.php?file=something.txt > > > > I want to rename generator.php to just "generator" and have > apache parse it > > as a PHP file. So when I hit it, it will look something like: > > http://www.something.com/generator?file=something.txt > > > > The reason being, I'm trying to replace a badly written CGI > with this nice > > graceful PHP script, but there are too many links to change > other places to > > have the URL be different. >