Daily Archives: February 6, 2009


Magento mod_rewrite doesn’t work 3

After installation of Magento and ensuring that mod_rewrite is enabled and working on my apache server, the Magento shopping cart still gives me the below error:

Whoops, our bad…

The page you requested was not found, and we have a fine guess why.
  • If you typed the URL directly, please make sure the spelling is correct.
  • If you clicked on a link to get here, the link is outdated.

The Fix

Log into the admin area and navigate to system->cache management.  Click the “refresh” button next to “catalog rewrites”.  That’ll fix’er.  It’s pretty dumb that this must be done on a fresh install, but it does the trick.


Magento cannot log into admin 50

I experienced a problem just after my Magento install where the page would simply redirect back to the login without displaying an error message.  I’d login using the user credentials I just created during the install and I also tried using the default user “admin” with password “123123” .  The trick was that I was installing on localhost and for some reason a cookie was not being set for the session.  I have other sites requiring a cookie on localhost, but Magento seems to have a problem with it.

The solution is to add the following line to your hosts file so you can access your localhost as www.localhost.com.
C:Windows\System32\drivers\etc\hosts (edit this file in notepad)
127.0.0.1 magento.localhost.com www.localhost.com
Also worth mentioning, if you need to reset a password manually in the database use the following:

UPDATE admin_user SET password=MD5(‘mypassword’) WHERE username=‘admin’;

If none of the above works, install the browser Opera and use it. Opera seems to work out of the box whereas IE, Firefox, and Google Chrome do not.