Our blog

 

Magento 500 Error + Solution

On a recent clean installation on a 1and1 Linux server for a client, the site was getting 500 errors on every page other than the home page. The fix for this was to add the following line to the .htaccess file in the document root:

RewriteBase /

Hope this helps someone else out

CODE:
  1. ############################################
  2. ## you can put here your magento root folder
  3. ## path relative to web root
  4.  
  5.     #RewriteBase /magento/
  6.     RewriteBase /

More...

More Reading:

17 Comments

chris
May 28th, 2009

perfect. exactly what i needed. i hope you get PR1 for this. if i had found this first instead of waiting for the 8000 magento directories to finish chmod'ing i would have been much happier.

 

Tom Haczewski
September 13th, 2009

You are THE MAN. Thank you so much.

 

Marco Fang
June 22nd, 2010

Wonderful and straight simple solution for me! Thank you man.

 

Paul Jones
August 20th, 2010

thanks man! was looking everywhere for the last 2 days to sort this out.

installed magento 1.4.1.0

you would think it would work right out the box! oh no!

 

ikalangita
October 11th, 2010

This is the right solution

 

Jim
January 28th, 2011

Worked!!!
Thank you!!!

 

Benjamin Judson
March 22nd, 2011

Thank you ever so much!!!

 

Elemental
April 6th, 2011

Thanks! Worked like a charm!

 

Luis Miguel
July 22nd, 2011

Thanks!!

 

Sammy Newton
August 3rd, 2011

After two whole days struggling with this issue. I found this remarkably easy solution. Thank you so much!

 

xavier
September 6th, 2011

worked perfectly for me! thanks!

 

duck_prince
September 24th, 2011

I don't know why but still not working for me :(

 

drbblz
October 10th, 2011

after reading tons of forums, I could not find the answer. This one worked! I am running magento 1.6 on 1&1 hosting, and out of nowhere I was getting that 500 error.

This was the fix for me!

Thank you so much!

 

ReDesinged
October 19th, 2011

I had this same issue with a client on 1and1.com hosting, the admin randomly stopped working and started giving 500 errors.

Problem is my clients .htaccess file RewriteBase was already set properly.

At my wits end, I simply opened the file and resaved it, with no changes and their site started working again.

1and1 must have some sort of process that goes through and messes with the .htaccess file permissions or something. i've never run into this anywhere else. hope that helps someone. thanks for the tip i would never have thought to try that had you not posted this seeing as i had already set that to get the site working in the first place.

thanks,
josh

 

Brian
November 12th, 2011

Cheers! This really solved the problem for me and saved me a real headache.

 

Magento Specialists
December 29th, 2011

It's straight forward solutions. Thanks for posting.

 

Hannan
January 5th, 2012

I got no information about this 500 error. yes although every one tried to answer best way but all in vain :)

any how guys if you are getting this sort of problem then I suggest you these options:

1) Rather than doing direct installation on live server you better to check that on your local PC . That will give you easy option if the package itself has some configuration problem that will not create any headache for you to start with new project to try again in Xampp/ wampp.

And upload your local work to live server you just then need to make changes in "config_data" some sort of named table and ETC>> LOCALE.XML and removing all from cache from VAR>>CACHE .

2) Other option it gets some configuration problem sometimes and htaccess override that doesn't let you access your any .php file as well. So you just create another folder on side and out of your current magento folder. i.e.

OLD : magento_projects/myMagentoProject1
NEW : magento_projects2/myMagentoProject1

And this will work. This is a good tip for specially those guys who suddenly gets into this problem :)

 

 

Leave a Reply