i cant see my site: Internal Server Error , please help

Discussion in 'Programming' started by nevret2, Sep 23, 2007.

  1. #1
    hello,

    i get the next message when i look at my domain:

     The server encountered an internal error or misconfiguration and was unable to complete your request.
    
    Please contact the server administrator, xxxxxxx and inform them of the time the error occurred, and anything you might have done that may have caused the error.
    
    More information about this error may be available in the server error log.
    
    Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
    
    Code (markup):
    when i delete the .htacces, the site is working, but the urls aint working anymore

    the text in my .htacces is:

    php_flag  register_globals on
    #php_flag apc.enabled off
    
    Options +FollowSymLinks
    RewriteEngine On
    
    RewriteRule ^go/(.*)/(.*)/$ show.php?id=$1
    RewriteRule ^do/(.*)/(.*)/$ show.php?b=y&id=$1
    RewriteRule ^do/(.*)/$ show.php?b=y&id=$1
    RewriteRule ^go/(.*)/$ show.php?id=$1
    Code (markup):

    can somebody please help me, thnx,
     
    nevret2, Sep 23, 2007 IP
  2. krt

    krt Well-Known Member

    Messages:
    829
    Likes Received:
    38
    Best Answers:
    0
    Trophy Points:
    120
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #2
    Take out parts of the htaccess until you find out which line(s) trigger the error. Try replacing all instances of (.*) with (.+?).

    Also, is PHP running as a CGI binary? If so, php_flag cannot be used in .htaccess and you will have to consider other options, such as local php.ini files if your host allows them.
     
    krt, Sep 23, 2007 IP
  3. petronel

    petronel Peon

    Messages:
    113
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #3
    or take a look at error_log in cpanel (if you have it) and see what part is causing the error
     
    petronel, Sep 23, 2007 IP
  4. nevret2

    nevret2 Peon

    Messages:
    518
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #4
    with my old host it was working, but now i have hostgator and i dont understand it:(:eek:
     
    nevret2, Sep 23, 2007 IP
  5. krt

    krt Well-Known Member

    Messages:
    829
    Likes Received:
    38
    Best Answers:
    0
    Trophy Points:
    120
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #5
    Did you bother to read what I said?
     
    krt, Sep 23, 2007 IP
  6. nevret2

    nevret2 Peon

    Messages:
    518
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #6
    thnx very much, its working
     
    nevret2, Sep 24, 2007 IP