When I try to login in magento admin and when I enter correct login detail I get redirected to the frontend.

I am using xampp


This is the url in address bar.

And I am getting 404 page.

But when I try to change address bar to


Its working totally fine

Any help


2 Answers 2


This is usually a result of improper routing.

There are 2 ways this can happen;

1. Through your htaccess file (for example when you try to remove the index.php from the URL). Make sure your htaccess contains the following and not something else:

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]

2. The url values you put in under


In your core_config_data database table are incorrect. They should be http://domain.com and https://domain.com respectively.


First you can check your settings in httpd.conf this line : AllowOverride All

Should be ALL not None

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.