After moving site to a new server I had some problems with Magento:
Initially admin was a 404, so I tried this in phpmyadmin:
SET FOREIGN_KEY_CHECKS=0;
UPDATE `core_store` SET store_id = 0 WHERE code='admin';
UPDATE `core_store_group` SET group_id = 0 WHERE name='Default';
UPDATE `core_website` SET website_id = 0 WHERE code='admin';
UPDATE `customer_group` SET customer_group_id = 0 WHERE customer_group_code='NOT LOGGED IN';
SET FOREIGN_KEY_CHECKS=1;
That helped and the 404 page appears, but without styles and it doesn't allow me to login or reset my password. So I tried this:
DELETING the content of var/session, var/cache!!!
That didn't do anything. SO because I am using Magento 1.4 I commented code from line 86 to 98 in app/code/core/Mage/Core/Model/Session/Abstract/Varien.php.
/* if (!$cookieParams['httponly']) {
unset($cookieParams['httponly']);
if (!$cookieParams['secure']) {
unset($cookieParams['secure']);
if (!$cookieParams['domain']) {
unset($cookieParams['domain']);
}
}
}if (isset($cookieParams['domain'])) {
$cookieParams['domain'] = $cookie->getDomain();
} */
But nothing still! Any ideas?