Results 1 to 2 of 2

Thread: Changing page.php to /page/

  1. #1
    Join Date
    Dec 2006
    Posts
    1

    Changing page.php to /page/

    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!

  2. #2
    Join Date
    Dec 2004
    Posts
    2,788
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •