WordPress Internal Server Error 500

Fixing the Internal Server Error 500

About this article: Posted in: Learned along the way
By: Blockcoder ( Admin ) / 14.11.2011
Stats: no comments / Views: 1,161
Tags: ,

The situation

This interesting problem occurred as I was publishing one of my client’s website. Once I had moved the files from the testing domain to the client’s domain, I opened immediately web browser and check if the site was working. Well, first everything looked right — BUT when I navigated deeper ( anywhere except frontpage ) it just blanked out white and gave me the Internal Server Error 500.

In my case, it looked like this:

Internal Server Error 500


What causes the problem?

I compared the two domain’s settings and the files, but they were just the same. I checked the links, titles, hrefs but everything seemed to be right. But it has to be somewhere!

I googled the error 500 and it gave me an answer like of this: “The “Internal Server Error 500″ occurs when there is misconfiguration within your server settings or Apache generates a general error“.

Allright — then I had a clue.. do you already know where I’m heading to?


One way to fix the Internal Server Error 500

I immeadiately went to my client’s ftp root and searched for the .htaccess file. Found it and it looked somewhat like this:


# BEGIN WordPress

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


# END WordPress

I had to correct the last line of the RewriteRules, you see:


RewriteRule . /index.php [L] // removed "path/" 

And this does the magic! The site was working and the client was happy. So next time the error occurs, first check the .htaccess file that it is correct. If it’s correct and the site is still not working, then turn to Google again.

Thanks!


Leave a Reply

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

10,876 Spam Comments Blocked so far by Spam Free Wordpress

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=""> <strike> <strong>