Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

switching the site to https


Zero222

Recommended Posts

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.

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

@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

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...