Removing .html extension from url

Discussion in 'HTML & Website Design' started by Nihondesu, Nov 16, 2014.

  1. #1
    Hi Digital Point i'm currently facing a real problem so i had a copy of my old website which it was about wallpapers, images etc on my usb drive today i uploaded all of my old website's files to the following directory public_html/old but it seems all of the links aren't proprely working 2 years ago when i was still using it the site was like this example.com/wallpapers but now it appears to be like this example.com/old/wallpapers.html

    i tried tons of things - i'm working on this for about 6 hours searched for google non stop and nothing worked out. I made a .htaccess file and tried tons of codes but non of them seemed to work could you please give me some suggestion or any kind of help to remove that .html extension from my website please ?
     
    Nihondesu, Nov 16, 2014 IP
  2. KewL

    KewL Well-Known Member

    Messages:
    245
    Likes Received:
    16
    Best Answers:
    3
    Trophy Points:
    128
    #2
    it be /wallpapers/index.html < index being the old wallpapers.html
     
    KewL, Nov 16, 2014 IP
  3. Nihondesu

    Nihondesu Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #4
    Thanks for the reply but my main objective is to remove the .html extension ending on my website's url/links
     
    Nihondesu, Nov 17, 2014 IP
  4. KewL

    KewL Well-Known Member

    Messages:
    245
    Likes Received:
    16
    Best Answers:
    3
    Trophy Points:
    128
    #4
    That's how you do it. If you change your structure like above and visit example.com/wallpapers it will work.

    For example:
    http://sitechop.com/about

    Maybe there's some complicated way, but I'd bet thats how 99% of all websites are structured.
     
    KewL, Nov 17, 2014 IP