Rename .php to .html @ the domain root but not within directories.

Discussion in 'Apache' started by COUME, May 26, 2006.

  1. #1
    Hello,

    I am trying to do something with no luck and I wonder if it is possible to do it...

    Basically, I am looking to have all my pages .php on my domain root to be renamed as .html BUT i want the .php pages within the directories to stay as .php

    The result would produce something as follow:
    www.mythtvtalk.com/pages1.php -> www.mythtvtalk.com/pages1.html
    ...
    www.mythtvtalk.com/pagesXXX.php -> www.mythtvtalk.com/pagesXXX.html
    www.mythtvtalk.com/forum/pages1.php -> no renaming
    ....
    www.mythtvtalk.com/forum/pagesXXX.php -> no renaming
    Code (markup):
    Do you reckon it is possible? If so, any tips will be more than welcome :)

    Cheers,
    Ludo
     
    COUME, May 26, 2006 IP