Jump to content

ssl redirecting admin (help needed before launch)


Recommended Posts

Hiya,

 

The one and only problem I have with my shop is, as soon as I activate SSL in the back office, I'm unable to re-login to the admin side,,Just redirects over and over again.

 

All is well on the customer side SSl doing its job. The only way I can get into admin side is by diabling ssl via the database..

 

Anyone got a clue how to solve it, I want to launch the shop next week as a gift for my neice.

Link to comment
Share on other sites

Thanks for that Mike, I have run through these topics and made the changes but still the loop is there on admin login (see snapshot) here are the lines on admin login.php can you see any probs?

 

if ((empty($_SERVER['HTTPS']) OR strtolower($_SERVER['HTTPS']) == 'off')

AND Configuration::get('PS_SSL_ENABLED'))

{

// You can uncomment theses lines if you want to force https even from localhost and automatically redirect

// header('HTTP/1.1 301 Moved Permanently');

// header('Location: '.Tools::getShopDomainSsl(true).$_SERVER['REQUEST_URI']);

// exit();<p> // If ssl is enabled, https protocol is required. Exception for maintenance and local (127.0.0.1) IP

if ($clientIsMaintenanceOrLocal)

$errors[] = translate('SSL is activated. However, your IP is allowed to use unsecure mode (Maintenance or local IP).').'<br/>';

else

$warningSslMessage = translate('SSL is activated. Please connect using the following url to log in in secure mode (https).')

.'<br/><br/><a href="

if ((empty($_SERVER['HTTPS']) OR strtolower($_SERVER['HTTPS']) == 'off')

AND Configuration::get('PS_SSL_ENABLED'))

{

// You can uncomment theses lines if you want to force https even from localhost and automatically redirect

// header('HTTP/1.1 301 Moved Permanently');

// header('Location: '.Tools::getShopDomainSsl(true).$_SERVER['REQUEST_URI']);

// exit();<p> // If ssl is enabled, https protocol is required. Exception for maintenance and local (127.0.0.1) IP

if ($clientIsMaintenanceOrLocal)

$errors[] = translate('SSL is activated. However, your IP is allowed to use unsecure mode (Maintenance or local IP).').'<br/>';

else

$warningSslMessage = translate('SSL is activated. Please connect using the following url to log in in secure mode (https).')

.'<br/><br/><a href="

if ((empty($_SERVER['HTTPS']) OR strtolower($_SERVER['HTTPS']) == 'off')

AND Configuration::get('PS_SSL_ENABLED'))

{

// You can uncomment theses lines if you want to force https even from localhost and automatically redirect

// header('HTTP/1.1 301 Moved Permanently');

// header('Location: '.Tools::getShopDomainSsl(true).$_SERVER['REQUEST_URI']);

// exit();

// If ssl is enabled, https protocol is required. Exception for maintenance and local (127.0.0.1) IP

if ($clientIsMaintenanceOrLocal)

$errors[] = translate('SSL is activated. However, your IP is allowed to use unsecure mode (Maintenance or local IP).').'<br/>';

else

$warningSslMessage = translate('SSL is activated. Please connect using the following url to log in in secure mode (https).')

.'<br/><br/><a href="https://".Tools::getServerName().Tools::safeOutput($_SERVER['REQUEST_URI'].'">https://'.Tools::getServerName().Tools::safeOutput($_SERVER['REQUEST_URI']).'</a>';

}

post-331502-0-49964200-1330966426_thumb.png

Link to comment
Share on other sites

Hi brendancollins,

Have you tried accessing your admin panel via https:// instead of http://? If you're trying to access the secure site via http:// you're going to get that error, although just clicking that link will properly redirect you.

 

Go ahead and give that a try and let me know if that works any better for you.

 

-Mike

  • Like 1
Link to comment
Share on other sites

  • 1 year later...

hi

 

where can i setup that login & shopping users have to do in ssl connection ?

i have installed ssl cert (in the same folder/domain) but everything is working in http:// only ...

of course when i force ssl - evertything is OK, but how to force presta to use ssl ????

Edited by wojtopole (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...