I have searched google for solutions for hours, and I allready have tryed, without luck, this solution:
DELETE FROM cms_page_store WHERE store_id NOT IN (SELECT store_id FROM core_store);
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';
I also have flushed the cashe in System Cache mangement.
I still get a 404 error when I click at CMS Pages.
Can anyone please help me with some other surgestions? Regards, Leif