html pages without .html extention

Discussion in 'HTML & Website Design' started by ceint_com, Nov 17, 2008.

  1. #1
    I have a site I moved from one server to another and now my pages only show up as txt.

    Example: http://www.jamaica.no/vare-reisemal/bahamas

    Anyone know how I can get the pages to load as .html

    What I want is for the server to recognize /vare-reisemal/bahamas as a html file load the page.

    Any suggestions?
     
    ceint_com, Nov 17, 2008 IP
  2. van@mistcreative

    van@mistcreative Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hey there,

    You can probably download a batch converter that will convert your .txt to .html --- just google search: batch+text+to+html+converter. I just did this and quite a few programs came up but I didn't get a chance to look through them for you.
     
    van@mistcreative, Nov 17, 2008 IP
  3. mcfox

    mcfox Wind Maker

    Messages:
    7,526
    Likes Received:
    716
    Best Answers:
    0
    Trophy Points:
    360
    #3
    Rewrite them using htaccess.
     
    mcfox, Nov 17, 2008 IP
  4. ceint_com

    ceint_com Active Member

    Messages:
    312
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    78
    #4
    Any mod_rewrite suggestions?
     
    ceint_com, Nov 17, 2008 IP
  5. ceint_com

    ceint_com Active Member

    Messages:
    312
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    78
    #5
    Just noticed it works in IE but not FireFox. Any suggestions?
     
    ceint_com, Nov 17, 2008 IP
  6. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #6
    For whatever reason, your server is sending your page as 'text/plain' and not 'text/html'. You need to check your server settings or contact your host. IE must be ignoring the HTTP headers which is incorrect behavior.
     
    drhowarddrfine, Nov 17, 2008 IP
  7. mygalaxy

    mygalaxy Active Member

    Messages:
    57
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    61
    Digital Goods:
    1
    #7
    Wait, are the pages showing the code when you load them in a browser or the actual file extensions changed? I don't understand so please clear this up for me and I may have some suggestions.
     
    mygalaxy, Nov 17, 2008 IP
  8. offshore web development

    offshore web development Peon

    Messages:
    235
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #8
    You need to solve this issue by contacting your hosting provider. Best of luck.
     
  9. justinlorder

    justinlorder Peon

    Messages:
    4,160
    Likes Received:
    61
    Best Answers:
    0
    Trophy Points:
    0
    #9
    It works well now, no problem as in your description .
    For the .html extension, it is bcoz of the .htaccess file and url rewrite regulations .
     
    justinlorder, Nov 18, 2008 IP
  10. ceint_com

    ceint_com Active Member

    Messages:
    312
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    78
    #10
    Finally got it to work. Thanks to all who responded here.
     
    ceint_com, Nov 18, 2008 IP
  11. mcfox

    mcfox Wind Maker

    Messages:
    7,526
    Likes Received:
    716
    Best Answers:
    0
    Trophy Points:
    360
    #11
    What did you do?
     
    mcfox, Nov 18, 2008 IP