Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Automatically redirect to https-Help Pleaseeeee!


oscomm.1986

Recommended Posts

Posted

Hi,

 

I am trying to make our oscommerce site secure. We already have the SSL certificate installed and both http & https versions of the websites are working fine. But the problem is when our customers type: www.mysite.com or mysite.com , they get redirected to http://www.mysite.com . But we want to redirect them to https://www.mysite.com so that they do not hesitate to submit their credit card info. I have my config file and everything set up for https:

 

define('HTTP_SERVER', 'http://www.mysite.com');
 define('HTTPS_SERVER', 'https://www.mysite.com');
 define('ENABLE_SSL', true);
 define('HTTP_COOKIE_DOMAIN', 'www.mysite.com');
 define('HTTPS_COOKIE_DOMAIN', 'www.mysite.com');
 define('HTTP_COOKIE_PATH', '/');
 define('HTTPS_COOKIE_PATH', '/');
 define('DIR_WS_HTTP_CATALOG', '/');
 define('DIR_WS_HTTPS_CATALOG', '/');

 

 

So can anybody help me, how to redirect the customers to https://www.mysite.com automatically instead of http://www.mysite.com

 

Pleaseee

Posted

Ensure you have this is your htaccess:

 

REMOVED CODE, FORUM JUST MESSED IT UP!! Another bug needs fixing!!

 

But note having SSL does not make your site secure, it just gives a secure connection between u & client

 

Read This

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Posted

Hey

 

thanks for your reply

 

REMOVED CODE, FORUM JUST MESSED IT UP!! Another bug needs fixing!!????What??

 

By the way where is the htaccess file? Sorry I am new to oscoomerce.......

Posted

It isn't recommended that you do this. The code in the shop will handle switching when it is necessary.

 

Hello

 

Thanks for your reply.

 

Yeah the code in the shop automatically redirects when the customers reach the checkout page. But few customers call us and insist that our site is not secure because it doesn't say https:// on the home page and so they do not want to make any purchases. So thats the reason we are trying to make it https://mysite.com.

 

Can you please tell me why it is not recommended? Will it mess up the whole shop? And can you also tell me where can I find the code which handles switching when necessary?

Posted

Yeah the code in the shop automatically redirects when the customers reach the checkout page. But few customers call us and insist that our site is not secure because it doesn't say https:// on the home page and so they do not want to make any purchases. So thats the reason we are trying to make it https://mysite.com.

That's the way almost all sites work. Try going to EBay, Amazon,Paypal, etc. Most ssl certificates come with a site seal. If you install that in a prominent place on the site, your customers can see at a glance that you are protected.

 

Can you please tell me why it is not recommended? Will it mess up the whole shop? And can you also tell me where can I find the code which handles switching when necessary?

SSL adds a server load and can slow down load times but the main reason is for the search engines. You have to go through extra steps to get the site to rank well if you enable all pages. It won't break the shop if you enable it though. You do that by changing the configure file to use https instead of http in the first setting.

Support Links:

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

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Posted

Hey

 

thanks for your reply

 

REMOVED CODE, FORUM JUST MESSED IT UP!! Another bug needs fixing!!????What??

 

By the way where is the htaccess file? Sorry I am new to oscoomerce.......

 

 

The new forum software messsed up the code I posted, I did'nt leave it like that, as if u used the messed code it would break your site.

 

If u need an explenation of htaccess, read this

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Posted

The new forum software messsed up the code I posted, I did'nt leave it like that, as if u used the messed code it would break your site.

 

If u need an explenation of htaccess, read this

 

 

Okay got it. Thanks a tonnnnnn!!!!!!! :D :D :thumbsup:

Posted

That's the way almost all sites work. Try going to EBay, Amazon,Paypal, etc. Most ssl certificates come with a site seal. If you install that in a prominent place on the site, your customers can see at a glance that you are protected.

SSL adds a server load and can slow down load times but the main reason is for the search engines. You have to go through extra steps to get the site to rank well if you enable all pages. It won't break the shop if you enable it though. You do that by changing the configure file to use https instead of http in the first setting.

 

Great. Thanks for the valuble info.......now i know!!! :thumbsup:

Archived

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

×
×
  • Create New...