Can't View Web Page in Mozilla

Discussion in 'HTML & Website Design' started by dbishop103, Feb 3, 2011.

  1. #1
    Okay, this is my own website - http://frugalfancy.com - the pages are .shtml pages. I haven't changed anything then all of a sudden today, I can't view the site. It tries to download with an error that it doesn't know what type file it is. I've checked htaccess - it's the same as it's been. Can someone please tell me why this is doing this and how to fix it? (I hope!)

    If I mess something up, I can understand that, but when I don't even touch the site and something goes wrong, it's REALLY aggravating. :p

    Thanks for your help!

    - Forgot to add that when I enter the direct URL with the file name like http://frugalfancy.com/index.shtml it pulls the page from my computer and not the web server. Very weird.
     
    dbishop103, Feb 3, 2011 IP
  2. AtSeaDesign

    AtSeaDesign Active Member

    Messages:
    172
    Likes Received:
    2
    Best Answers:
    1
    Trophy Points:
    93
    #2
    I know I ran into an issue when my ISP upgraded from php4 to php5. Have they done any maintenance on your servers? I found an old thread that said they had the same issue because the ISP turned off SSI.

    See if this helps with your htaccess file

    
    # Convert .shtml requests to .html if the .html file exists
    #
    # Turn on the Rewrite Engine:
    
    RewriteEngine on
    
    # Cut ".shtml" off the end of the request, to get the basename:
    
    RewriteRule ^(.*)\.shtml$ $1 [C,E=WasSHTML:yes]
    
    # Change the request for "basename.shtml" to "basename.html",
    # if basename.html exists
    
    RewriteCond %{REQUEST_FILENAME}.html -f
    RewriteRule ^(.*)$ $1.html [S=1]
    
    # If it doesn't, then put the ".shtml" back on the end:
    
    RewriteCond %{ENV:WasSHTML} ^yes$
    RewriteRule ^(.*)$ $1.shtml
    
    Code (markup):
    Just curious though why are you using .shtml extention?
     
    AtSeaDesign, Feb 3, 2011 IP
  3. moads

    moads Member

    Messages:
    115
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    28
    #3
    SSI can also be disabled in Apache. You might want to check with whoever you are hosting the site with and see if they can enable it.. or you'll just have to change the extensions/links on your site.
     
    moads, Feb 3, 2011 IP
  4. dbishop103

    dbishop103 Member

    Messages:
    73
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    45
    #4
    I don't know if they've made any changes or not. I'll have to check into it. But I use shtml because I use SSI and you can't have html pages with includes. It's how I started designing sites a hundred years ago, so I've just never changed the way I did my pages.
     
    dbishop103, Feb 3, 2011 IP
  5. radiant_luv

    radiant_luv Peon

    Messages:
    1,327
    Likes Received:
    34
    Best Answers:
    1
    Trophy Points:
    0
    #5
    I can view your website, looks good to me, no issues.
     
    radiant_luv, Feb 3, 2011 IP