Post by Aleks1201 » Tue May 12, 2020 4:19 pm

After I enabled SSL in the cPanel, my shop crashed. Then I went in opencart admin and enabled SSL in System->settings. But the site is still crashed? The store URL in System->Setting is set to http, but my hosting provider told me it needs to be set to https in opencart for the SSL to work? What do I need to do, to make SSL work?

New member

Posts

Joined
Sat Apr 11, 2020 10:05 pm

Post by opencartmart » Tue May 12, 2020 6:34 pm

1. Replace all URLs with SSL URLs in both config file (admin and catalog)
2. Rename .htaccess.txt to .htaccess and adjust the `RewriteBase` path if the store is running from a sub-directory e.g. /store

XForm - Opencart Form Builder
Xshippingpro - An advanced Shipping Module
Need Professional support? Skype: opencartmart


Active Member

Posts

Joined
Wed Oct 02, 2013 3:59 am

Post by paulfeakins » Tue May 12, 2020 6:49 pm

Aleks1201 wrote:
Tue May 12, 2020 4:19 pm
What do I need to do, to make SSL work?
For a start change http:// to https:// everywhere in both config.php files.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by Aleks1201 » Tue May 12, 2020 9:03 pm

opencartmart wrote:
Tue May 12, 2020 6:34 pm
1. Replace all URLs with SSL URLs in both config file (admin and catalog)
2. Rename .htaccess.txt to .htaccess and adjust the `RewriteBase` path if the store is running from a sub-directory e.g. /store
Where is this config.php file and htaccess file? been searching for 1 hour lol

New member

Posts

Joined
Sat Apr 11, 2020 10:05 pm

Post by opencartmart » Tue May 12, 2020 10:23 pm

Aleks1201 wrote:
Tue May 12, 2020 9:03 pm
Where is this config.php file and htaccess file? been searching for 1 hour lol
One config.php file is located in the root directory and another in the admin directory admin/config.php

Please ignore the htaccess file. You don't need to change anything in it, I was mingling with SEO URL :)

XForm - Opencart Form Builder
Xshippingpro - An advanced Shipping Module
Need Professional support? Skype: opencartmart


Active Member

Posts

Joined
Wed Oct 02, 2013 3:59 am

Post by Aleks1201 » Wed May 13, 2020 12:48 am

Thank you, it works now

New member

Posts

Joined
Sat Apr 11, 2020 10:05 pm

Post by paulfeakins » Wed May 13, 2020 6:34 pm

Aleks1201 wrote:
Tue May 12, 2020 9:03 pm
Where is this config.php file and htaccess file? been searching for 1 hour lol
Yikes, you should consider getting a freelancer or agency who can be on hand to help you with stuff like this.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by intausar » Thu Jan 21, 2021 3:43 am

I have same problem instead of ssl I want to make url modification after install opencart in to hosting during trial periond.I have us article https://www.namecheap.com/support/knowl ... ncart-url/ and did everything same renamad url to my original domain name instead of assighned trial url and after upload to hostind config.php files was modified back to trial url what I was nominated before.I guess after modification config.php I need to run some command to make changes permanent.
Please guru's give respond.

Newbie

Posts

Joined
Fri Jan 15, 2021 9:29 pm

Post by intausar » Fri Jan 22, 2021 9:57 pm

intausar wrote:
Thu Jan 21, 2021 3:43 am
I have same problem instead of ssl I want to make url modification after install opencart in to hosting during trial periond.I have us article https://www.namecheap.com/support/knowl ... ncart-url/ and did everything same renamad url to my original domain name instead of assighned trial url and after upload to hostind config.php files was modified back to trial url what I was nominated before.I guess after modification config.php I need to run some command to make changes permanent.
Please guru's give respond.
After submitting technical issue to hosting support they fix me that problem.

Newbie

Posts

Joined
Fri Jan 15, 2021 9:29 pm
Who is online

Users browsing this forum: No registered users and 408 guests