Magento admin login page showing "whoops our bad" (404 error )

2.3k Views Asked by At

I have tried many solutions which are given in Stack Overflow and it's not working anymore. My Magento version is 1.5. Why am I getting this issue after I tried all the solution for admin?

4

There are 4 best solutions below

0
Andrew Smith On

make sure that you have used index.php in url before admin route name.This is needed if url rewrites are enabled.

0
Islam Reda On

index.php before /admin or any suffix you have

0
Ramesh On

For Ubuntu edit the file /etc/apache2/apache2.conf

To edit this file use sudo vi /etc/apache2/apache2.conf command

<Directory /var/www/>
     Options Indexes FollowSymLinks
     AllowOverride None
     Require all granted
</Directory>

to

<Directory /var/www/>
    Options Indexes FollowSymLinks
    AllowOverride All
    Require all granted
</Directory>

After this run command

sudo service apache2 restart

IF STILL ADMIN SHOW 404 NOT FOUND, Add htaccess file

1) Add .htaccess at root of magento

0
rich On

Copy the index.php and .htaccess files from /pub/ to your root folder.

Find the below line in the index.php (in the root folder):

require DIR . '/../app/bootstrap.php'; and replace it with

require DIR . '/app/bootstrap.php';