Forum Moderators: phranque

Message Too Old, No Replies

Mod Rewrite

Everyone's favorite apache instruction.

         

jp_css

6:32 am on May 8, 2004 (gmt 0)

10+ Year Member



I don't know much about Apache except that the server my site is running on uses it. I would like to do something that is hopefully simple. I have a file say "thefile.php". Is there a way to process this file if I renamed it to "thefile" (without file type) as a php file. Or should I just leave it as "thefile.php" and have it displayed as "thefile" in the browser?

gergoe

9:42 am on May 8, 2004 (gmt 0)

10+ Year Member



removing the extension is not a good idea, altough you can configure apache and php to process the file, but what you need is a simple rewriting; from anyuri/thefile anyuri/thefile.php. check out the documentation, there're a lot of examples about similar tasks.