Problem loading part of website

Discussion in 'Web Hosting and Domain Names' started by ancom, Mar 2, 2012.

to remove all ads.
  1. ancom

    ancom New Member

    Messages:
    56
    Hello, guys. I have the strangest problem with my website:
    This happens only in Mozilla and Chrome, IE somehow deals with it:

    I have a website, and blog, like this: www.mywebsite/blog

    Blog works fine.

    when I type www.mywebsite/blog - the blog opens normally (it is also accessed normally via any links)

    But, when I type mywebsite/blog (without www), I get "500 internal server error" - and browser makes strange link like this:http://www.mywebsite/cgi-bin/php5.fcgi/blog/index.php - shouldn't browser handle typing without www without any problem?

    Does anyone know what is the problem ?
     
  2. AmethystNetwork

    AmethystNetwork New Member

    Messages:
    10
    Have you tried checking your apache error log?
     
  3. ancom

    ancom New Member

    Messages:
    56
    I don't have permissions to see error log (shared hosting) - when I access etc folder, I cannot see logs, even with "show hidden files" on.
    I forgot to mention that typing website link without www displays normally. It happens only when you type mywebsite/blog
     
  4. AmethystNetwork

    AmethystNetwork New Member

    Messages:
    10
    You should ask your provider to check the error log for you then
     
  5. Crook-sam

    Crook-sam Banned

    Messages:
    11
    You can send an email to a potential web hosting service and judge their customer service, firsthand.
    customers' safety should be the main goal for every web hosting provider. ;)
     
  6. ancom

    ancom New Member

    Messages:
    56
    I did some research and found that this code is making problem:
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^mywebsite.com [NC]
    RewriteRule ^(.*)$ http://www.mywebsite.com/$1 [L,R=301]

    When I comment these lines, everything works. But then I don't have my non www to www redirection for main domain:( Any clues?
     

Share This Page