The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

cPanel .htaccess problem.

Discussion in 'General Discussion' started by Rai Abdullah, Aug 16, 2012.

  1. Rai Abdullah

    Rai Abdullah Registered

    Joined:
    Aug 14, 2012
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Karachi, Pakistan, Pakistan
    cPanel Access Level:
    Root Administrator
    Hi,

    here is my problem. i have accidentally deleted the .htaccess file and now my all directories are showing error.

    it' says 500 internal server error. if the the directory don't have any file then it will show index of. but when i upload file it's shows internal server error.

    in easy way. you can say that my server running the html files correctly and none of my php file is working. when i try to open html file then it shows me the 500 internal server error. i am assuming that this is the error becuase of my htaccess file.


    Please help me solve this problem.
    waiting for response.

    thanks
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Please check the Apache error log to the specific error message pertaining to the "Internal Server Error" message you see when accessing your website. The Apache error log is located at:

    Code:
    # /usr/local/apache/logs/error_log
    Thank you.
     
  3. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    If you don't have a backup of your site for that .htaccess file, are you using a script like WordPress, Joomla or something along those lines? If you are, you could try downloading a copy of that application and then restore the default .htaccess it uses.

    If you aren't the hosting provider for the box, please check if your provider might have a backup copy.
     
  4. Escobar

    Escobar Member

    Joined:
    Aug 11, 2012
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page