Page 1 of 1

Can't login to admin panel after SSL /https install - SOLVED

Posted: Fri Feb 05, 2016 1:49 am
by TAKCS
Good day all.

Maybe someone here can help me. I purchased and had it installed on my 2.0.1.0 cart by my host, an SSL certificate. I have changed the root/config.php and admin/config.php to the following. I have also checked the "use SSL" box on the server tab in settings. Now that that is done, I can not login. I get a "The page you requested cannot be found!"

yes I want to run all the site with SSL.

Config
// HTTP
define('HTTP_SERVER', 'https://www.mydomainname.com/');

// HTTPS
define('HTTPS_SERVER', 'https://www.mydomainname.com/');

admin/config
// HTTP
define('HTTP_SERVER', 'https://www.mydomainname/admin/');
define('HTTP_CATALOG', 'https://www.mydomainname.com/');


// HTTPS
define('HTTPS_SERVER', 'https://www.mydomainname/admin/');
define('HTTPS_CATALOG', 'https://www.mydomainname.com/');


Any ideas?

Allen

Re: Can't login to admin panel after SSL and https install

Posted: Fri Feb 05, 2016 4:47 am
by Randem
Hi TAKCS,

Check to make sure that your SSL certificate is for www.mydomainname.com not mydomainname.com. Probably the most common error.

Secondly make sure that ALL your store URL's resolve to exactly the same place (root or folder). Your SSL must point to this location also.

Re: Can't login to admin panel after SSL and https install

Posted: Fri Feb 05, 2016 4:52 am
by TAKCS
Randem wrote:Hi TAKCS,

Check to make sure that your SSL certificate is for www.mydomainname.com not mydomainname.com. Probably the most common error.

Secondly make sure that ALL your store URL's resolve to exactly the same place (root or folder). Your SSL must point to this location also.
Good day.

When I set up the purchase for the SSL, I specified www. How would I check your second statement. Not a programmer guy. Just a intelligent person trying to figure this out.

Re: Can't login to admin panel after SSL and https install

Posted: Fri Feb 05, 2016 5:05 am
by Randem
You would need to log on to your admin control panel with your host to view your SSL configuration.
You could ask them too but you will get a accurate answer in the control panel.

Make sure your .htaccess is not redirecting also.

Re: Can't login to admin panel after SSL and https install

Posted: Fri Feb 05, 2016 8:47 am
by TAKCS
my domain is currently pointing to public_html/mydomainname.com So should I have had the SSL covering just the domain and no www? I could not find anywhere in the host control panel where it would say what the SSL config is. :( I have a reply to the current ticket in. We will see. .htaccess is not redirecting.

Re: Can't login to admin panel after SSL and https install

Posted: Fri Feb 05, 2016 9:04 am
by Randem
Yes, domainname.com is very different than http://www.domainname.com but you can have your .htaccess redirect either one to the other but your SSL will only cover one of them if you have a single domain SSL.

When you type into the address bar, which one shows the lock?

Re: Can't login to admin panel after SSL and https install

Posted: Fri Feb 05, 2016 9:20 am
by TAKCS
Randem wrote:Yes, domainname.com is very different than http://www.domainname.com but you can have your .htaccess redirect either one to the other but your SSL will only cover one of them if you have a single domain SSL.

When you type into the address bar, which one shows the lock?
Neither. It has an exclamation point in a triangle. I think I may have bigger issues here. I have another site that has a redirect from public_html to a www. address. When I look at the settings on that one, the store URL is http://www.itsdomainname.com. With the one I am working on there is not redirect in the host control panel and the settings in admin say http://www.hostdomainname.com/mydomainname.com. I own all of them. The one I am having issues with is an addon domain just like the other one above.

Make sense? I dunno... frustrating for sure.

Re: Can't login to admin panel after SSL and https install

Posted: Fri Feb 05, 2016 9:26 am
by Randem
I don't know what you mean by addon domain. Do you mean you have a domain that resolves to another domain so that they both point to the same exact place?

Re: Can't login to admin panel after SSL and https install

Posted: Fri Feb 05, 2016 9:37 am
by TAKCS
Randem wrote:I don't know what you mean by addon domain. Do you mean you have a domain that resolves to another domain so that they both point to the same exact place?
No. The root account is under http://www.accoutdomain/com. Then I have addon on domains for both of the carts. The one that I not dealing with (no SSL) has a "domainname.com" redirecting to "www.domainname.com" Both are addon domain to the host main account domain. The one I am dealing with has no redirect and therefore uses the http://www.accountdomain.com/domainname.com.

Is this my issue? I have an SSL cewrtificate that covers "www.domainname.com" and is is using "www.accountdomain.com/domainname."

have a I lost you yet?

Allen

Edit. Which begs the question. How do I change that in OC admin panal of through FTP? New install and database restore...? EEEWWWW!

Re: Can't login to admin panel after SSL and https install

Posted: Fri Feb 05, 2016 9:44 am
by EvolveWebHosting
What is your actual domain name in question? You can use this site to see whether or not your SSL Certificate covers non www and www.

https://www.sslshopper.com/ssl-checker.html

You can also use the site whynopadlock.com to figure out why page(s) aren't displaying the padlock when they should be.

If you want additional help, please send an email to sales (at) evolvewebhost.com

Re: Can't login to admin panel after SSL and https install

Posted: Fri Feb 05, 2016 9:44 am
by TAKCS
BTW,

I certainly appreciate all the help.

Allen

Re: Can't login to admin panel after SSL and https install

Posted: Fri Feb 05, 2016 9:48 am
by TAKCS
https://www.sslshopper.com/ssl-checker.html

Looks good. Yes.

Whynopadlock: i good except one thing. not an admin lock out issue though.

Re: Can't login to admin panel after SSL and https install

Posted: Fri Feb 05, 2016 9:50 am
by Randem
Confused. Quite simply what IP Addresses do the domain names resolve to

Re: Can't login to admin panel after SSL and https install

Posted: Fri Feb 05, 2016 9:57 am
by TAKCS
Randem wrote:Confused. Quite simply what IP Addresses do the domain names resolve to
The one I am working with The tak-cs.com (account domain) the same (shared server). So my account is got the static IP.

Re: Can't login to admin panel after SSL and https install

Posted: Fri Feb 05, 2016 10:14 am
by TAKCS
Btw, the cart works fine. I just had a sale at 5:38pm PST. Just when I click use SSL in store settings, things go totally sideways when trying to login to admin.

Out of here for the night. Family time. Check in again early am. Thakn you for the advise and head scratching with me.

Have a blessed and prosperous evening.

Allen

Re: Can't login to admin panel after SSL and https install

Posted: Sat Feb 06, 2016 12:20 am
by TAKCS
Solved. Thank you all for the help. I guess what happened was, I had the config.php file such that the additional domain name in there (http://www.accountdomain.com/domainname.com was totally FUBAR'n the situation. All is https now and I can login via admin panel.

Thank you again for your patience,

Have a blessed and prosperous day!

Allen

Re: Can't login to admin panel after SSL /https install - SOLVED

Posted: Thu Nov 12, 2020 6:17 pm
by freedr
1. Editing your config.php file in root and in admin folder to point to the https urls and .htaccess file.
2. Also in the system/config directory respectively 2 files: admin.php (for admin backend) and catalog.php (for frontend)
find $_['site_ssl'] = false;
change it to
$_['site_ssl'] = true;

Re: Can't login to admin panel after SSL /https install - SOLVED

Posted: Fri Jan 22, 2021 8:29 am
by Syx
freedr wrote:
Thu Nov 12, 2020 6:17 pm
1. Editing your config.php file in root and in admin folder to point to the https url
Thank you, this is what resolved my issue after some confusion about the cause.