PDA

View Full Version : Changing page.php to /page/



Katy
26 Dec 2006, 06:50 AM
I know I'll need to use mod_rewrite and I've read a lot of tutorials, but they all teach how to change a page like: site.com/page.php=93je0k to site.com/page.html or something. But I simply want to get rid of the .php extension. Like if I have site.com/page.php would be site.com/page/. Also what code do I need if have a folder, i.e. site.com/folder/file/? Thanks! :)

alvo
26 Dec 2006, 01:00 PM
Put the page in a directory with that name and change the file name to index.htm and the server will use that as the default file to serve, just like index.htm.