Jump to content

Activated SSL before installing the Cert and now can't access login page - HELP!


Vaughan

Recommended Posts

Hi

I’ve just installed the latest version of Prestashop. There’s no problem with the installation. I did configure the following:

- 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.

I 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 until I can finish a few other updates before installing the SSL certificate?

Can I delete the https redirect code from the login php file?

Thanks

Link to comment
Share on other sites

  • 2 weeks later...

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...