Jump to content

Recommended Posts

Posted

Hi there,

 

I'm looking to redirect my users on my site to my SSL at mywebsite.com instead of the www.mywebsite.com that they have been shopping on.

 

1) I understand the .htaccess code below will redirect all pages to the https - is that necessarily a bad thing? Or should I have it just redirect the shopping cart/checkout and my account options?

 

htaccess Code:

>RewriteEngine On
RewriteCond %{SERVER_PORT} =443
RewriteRule ^ https://tchdomain.ext%{REQUEST_URI} [R,L]
RewriteCond %{SERVER_PORT} !=443
RewriteRule ^ http://tchdomain.ext%{REQUEST_URI} [R,L]

 

2) If it should just redirect the shopping cart/checkout and my account, how do I modify the above code to do this?

 

Thanks in advance!

Michelle

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...