500 Internal Server Error – Fix

We were playing with the Index Manager in cPanel hosting system. Our website was running on wordpress cms. We set public_html to no indexing. As the result the website showed 500 Internal Server Error! and showed the message as below

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@llc.uk.com 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.


The fix to 500 Internal Server Error is simple if you are running wordpress system.

  1. From your control panel open File Manager. Make sure Show Hidden Files (dotfiles) option is checked
  2. Select .htaccess and edit
  3. You will find RewriteRule . index.php [L]Options -Indexes at the end remove it
  4. Click save and your site should be working again
This is how your .htaccess file with look, remove the last line

[sourcecode language=”plain”]
#Made Multi-Site with Multi-Site Enabler 1.5#

RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]

# uploaded files
RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ – [L]

RewriteRule . index.php [L]Options -Indexes

Comments (6)

  • Storyrefresh.com

     # BEGIN WordPress

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]

    # END WordPress

    • Storyrefresh.com

      what should i remove in this

      • Mlindos Waterwalker

        Remove the entire last line 

        RewriteRule . index.php [L]Options -Indexes

        • Ryan

           any other ways to fix this? mine looked like the person above. i removed the last line and still coming up with the error

  • Mlindos Waterwalker


    You really helped us out with this one, stopped short of reinstalling the entire site

  • Tylernispedrums69

    When I go to that file, I have nothing written in it, but I’m still getting the 500 server error… i just recently installed WP for my domain.  Any other suggestions?

Leave a Comment

Your email address will not be published. Required fields are marked (*).

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>