Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

switching the site to https


Zero222

Recommended Posts

Posted

Hello

I can't switch the site to https.

When I switch the hosting site to https, it turns out to be Abracadabra . What should I change in the files???

Posted

In the two configure.php files, change the things that say http: to https:

Note that this assumes that your host is answering on https.  If there's a problem with that, you'd have to take it up with your host. 

Always back up before making changes.

Posted
14 minutes ago, ecartz said:

In the two configure.php files, change the things that say http: to https:

Note that this assumes that your host is answering on https.  If there's a problem with that, you'd have to take it up with your host. 

What should I change in the files and where?

Posted

@Zero222  Please read what ecartz posted. He said change all http entries to https in both of the configure files. You may also want to add something into your htaccess files so all customer and search engine links transfer across to SSL as well. Adding something like this should work, but replace the #### for your site url.

# Rewrite code for non www to www and from HTTP to https
RewriteCond  %{HTTPS} off   [OR]
RewriteCond  %{HTTP_HOST}  !^www\.  [NC]
RewriteRule  ^(.*)$  https://www.####.com/$1  [R=301,L]

 

REMEMBER BACKUP, BACKUP AND BACKUP

Posted
6 minutes ago, 14steve14 said:

@Zero222  Please read what ecartz posted. He said change all http entries to https in both of the configure files. You may also want to add something into your htaccess files so all customer and search engine links transfer across to SSL as well. Adding something like this should work, but replace the #### for your site url.

# Rewrite code for non www to www and from HTTP to https
RewriteCond  %{HTTPS} off   [OR]
RewriteCond  %{HTTP_HOST}  !^www\.  [NC]
RewriteRule  ^(.*)$  https://www.####.com/$1  [R=301,L]

 

OK. Thank you. Sorry. In which directory are these two files located?

Posted

They are both in the store front and admin includes folders. So its admin/inckudes/configure and includes/configure

REMEMBER BACKUP, BACKUP AND BACKUP

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...