Error 500 When Loading WordPress

IT Problem

I had this error 500 in wordpress today when I ruined my site. I found out that the cause was a badly edited htaccess that I had edited in notepad, it screwed the formatting. I had no backup so I had to start a new htaccess the upload it to my site again.The error message was as below.

Error Message:

Internal Server Error

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

Please contact the server administrator, support@yourwebsite.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

IT Solution

Ok so first create a file called “.htaccess”. You will then need to edit this file with notepad or any txt editor. If you want to edit it with CPanel then use this guide.

http://www.techieshelp.com/how-to-edit-htaccess-in-cpanel/

Once you are in the .htaccess file simply copy and paste the section below into it and save. This should fix the error.

# BEGIN WordPress
ErrorDocument 404 /index.php?error=404
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

# END WordPress
SecFilterEngine Off
SecFilterScanPOST Off

 

You may need to check your permalinks and some plugins but all should be well now and you wordpress site will load fine.

Tags: wordpress

Allen White

Allen is a Consultant for ITPS in the North East of England and holds the following accreditations. MCSA, MCSE, MCTS, MCITP, CCA, CCSP, VCP 4,5 and HP ASE, AIS - Network Infrastructure.

Leave a comment

Categories

Vote!

What Web Browser Do You Use?

View Results

Loading ... Loading ...

Vote!

What do you prefer..VMware or Hyper-V?

View Results

Loading ... Loading ...