Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

my site doesnt forward from http to https


mikejay

Recommended Posts

Hi @mikejay It does go into secure mode as it should when going to login or checkout. There are ways to make it secure on all pages. That being said, you are using very old version of code. Here is a link to the oscommerce download page. I would strongly suggest to check into using the newest Phoenix Community Edition coding!

https://www.oscommerce.com/Products

 

Link to comment
Share on other sites

You may have got the out of date "Official" Version.

You need the bang up to date Phoenix Version, click the link in my signature.

Live shop Phoenix 1.0.8.4 on PHP 7.4 Working my way up the versions.

Link to comment
Share on other sites

19 hours ago, mikejay said:

but if i just use the site name or www. it wont forward to the https

Edit the includes/configure.php file and, if present, change the links for your site from http://www... to https://www...

Then edit the .htaccess file in the root of your shop and add the following, edited to match your site. The first line is not required if one is present but be sure to place the other lines after it.

RewriteEngine On 

#redirect index.php to root
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/
RewriteRule ^index\.php$ https://www.YOUR SITE.com/catalog/ [R=301,L]

#redirect non-www to www
RewriteCond %{HTTP_HOST} ^YOUR SITE\.com
RewriteRule ^(.*)$ https://www.YOUR SITE.com/catalog/$1 [R=permanent,L]

RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.YOUR SITE.com/catalog/$1 [R,L]

 

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...