linking to files without extensions

Discussion in 'Site & Server Administration' started by t0mb, May 5, 2008.

  1. #1
    Hi guys,

    I have moved one of my sites to a new host. On the old host it was possible to link to pages without using the extension.

    Example - if I linked to mysite.com/blog instead of mysite.com/blog.html, the old host would handle this fine. The new host however gives a 404 error.

    Is there anything I can do server side to link to files without the extension?

    Or, will I have to do the time consuming task of adding the extension to every link?
     
    t0mb, May 5, 2008 IP
  2. royo

    royo Peon

    Messages:
    173
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You need to use RewriteEngine in .htaccess if I'm not mistaken.
     
    royo, May 5, 2008 IP
    t0mb likes this.
  3. Camay123

    Camay123 Well-Known Member

    Messages:
    3,423
    Likes Received:
    86
    Best Answers:
    0
    Trophy Points:
    160
    #3
    Camay123, May 5, 2008 IP
    t0mb likes this.