My magento is installed on Ubuntu Linux under /var/www/magento . This question looks like some of the questions in the archives but is acutally somewhat different. When I in
I had the same problem when transferring my live site into localhost. Finally i resolved it.
I have windows OS. So i used WAMP stack for my localhost. I have spent lot of time to retrieve all the URL and its content in my localhost by changing .htaccess file,modifying core_config_data table in DB but everything went wrong.
Finally i got a clue to enable rewrite_module in Apache server. 1. To enable it Click on the Wamp icon in the tray bar (WAMP->Apache->Apache modules-> and select rewrite_module). 2. Restart Wamp Server. 3. clear cache (optional i think) - Delete all the files in the var/cache folder
Make Sure you have .htaccess file in your root folder lets assume(localhost/magento/.htaccess). If you don't have you will not get the result.
Thats it.
I hope now u will able to retrieve all other pages and URL other than home and also u will not get 404 error page.