Magento – error 404 after login to admin, nginx and index.php issue, how to solve

404-pageadmin-panelerrormagento-1.8nginx

I did set NGINX for my server, and use DirectAdmin, also I changed nginx.conf for Magento configs, everything is ok but I have a problem with admin area!

I can not login to dashboard, login page appear only when I write in url admin without index.php, example:

http://www.example.com/adminurl/

but when I click on login, then url change to:

http://www.example.com/index.php/adminurl/

and page return 404 error!

How can I solve this issue?

Use NGINX instead of apache and in frontend every link work as well, but all of them working without index.php

Best Answer

If the problem is caused by index.html and index.php my solution a problem I had yesterday may help with this

500 Internal Server Error when trying to access admin pages