Jump to content

Can't access Admin panel & Login


Recommended Posts

I've just installed the latest version of Prestashop. There's no problem with the installation. I changed the admin folder to admin123 and did configure the followings:

- Generated .htaccess in Admin/Tools/Generator
- Added a web service in Admin/Tools/Web Service
- Enable SSL as recommendation.

Then I couldn't login to Admin panel anymore. The error is:
The requested URL /prestashop/admin123/login.php was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

When I click the Log-in in the Front panel, I got another error:
The requested URL /prestashop/my-account.php was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

By FTP, I confirmed that login.php and my-account.php are there already. Is that error related to SSL and .htaccess? Can you figure out how to fix it?

Thanks

Link to comment
Share on other sites

  • 2 weeks later...

Hi VTC

Did you find the solution to this problem?

I have the same issue and have been told it's because the login url is now re directing to a https because of the SSL install and that Ineed to get SSL certificate to fix.

Does anyone know how to remove the SSL redirect code from the login php file?

Thanks

Link to comment
Share on other sites

  • 2 weeks later...

Same here. On my third install, while fixing an Authorize.net issue, I enable SSL now I can't login.

EDIT

I just solved my can't access Admin after SSL by changing my login.php

if (Configuration::get('PS_SSL_ENABLED') AND !(isset($_SERVER['HTTPS']) AND strtolower($_SERVER['HTTPS']) == 'on'))

to

if (Configuration::get('PS_SSL_ENABLED') AND !(isset($_SERVER['HTTPS']) AND strtolower($_SERVER['HTTPS']) == '1'))

now I can access again

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...