Recently I have upgraded my Magento from 220.127.116.11 to 18.104.22.168 and now the backend return a 404 error...
I have a "complex" structure for my website and I think the problem is related to my .htaccess.
Currently, to solve the problem, I have created a duplicate of app/code/local/Mage/Core/Model/Store.php and removed all index.php in URL.
The problem is that I can't use Magento Connect because it always ask me to login when I try to update, install or remove a module.
Suppose my website is http://example.com/
My www-data structure is like this :
www-data/.htaccess (http://example.com point here and I use the .htacccess to redirect request to the good directory
Solved! Go to Solution.
Problem solved by adding
$_SERVER['SCRIPT_NAME'] = '/index.php';