Serve Extentionless PHP

Discussion in 'HTML / PHP / JavaScript / CSS' started by edified, Nov 4, 2006.

  1. I'd like to serve PHP but without the .php extension so that http://brockhuman.com/music.php becomes http://brockhuman.com/music

    I'm guessing I could do this with an URL rewriter but the goal is to serve all extentionless files as PHP. Is there a way to instruct the server to serve all extentionless files as PHP? In apache I've used .htaccess (req's mod_rewrite) to assign null extentions to a php handler like this:

     
  2. Bruce

    Bruce DiscountASP.NET Staff

  3. Dang.

    Well if anyone can think of an apache comparable solution please post, I'm new to all this.

    Cheers, Ed

    edified.org
     

Share This Page