.htaccess rewriting all .php files to .html

Discussion in 'Apache' started by blueuniverse, Dec 5, 2004.

  1. computerzworld

    computerzworld Active Member

    Messages:
    214
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    58
    #21
    Hi,
    It works perfectly, Now I am having one more confusion. If user types url with .php extension in the browser it should automatically redirect the page to .html version. How can I do that? Any help would be appreciated.

    Thank you.
     
    computerzworld, Apr 18, 2011 IP
  2. e.chad

    e.chad Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #22
    Hey guys, im having problems changing the way my url looks, I want all of my files to look .html or without any extension at all, currently they are .php.
    I have tried quite a few different ways but nothing seem to work for me.. any help please?
     
    e.chad, Apr 20, 2011 IP