Announcement

Collapse
No announcement yet.

Discount code base url is not SSL

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Discount code base url is not SSL

    Our whole site is now SSL.

    Sent out a new discount code and I find the url does not have https for the BASEURL:

    https://www.oursite.co.uk/cgi-bin/rs...OUPON=BlahBlah

    Can anyone point me to where I can change this? I changed it manually and the code and link work fine - but I'd like it to happen automatically in future.
    Last edited by guccij; 21-Nov-2017, 08:48 AM. Reason: typo
    Reusable Snore Earplugs : Sample Earplugs - Wax Earplugs - Women's Earplugs - Children's Earplugs - Music Earplugs - Sleep Masks

    #2
    You could try playing with the network settings but I suspect this is a bug and whoever wrote the code for generating the link probably just manually put http: into the routine. I'd be surprised if there's anywhere in the database that this is taken from.

    Mike
    -----------------------------------------

    First Tackle - Fly Fishing and Game Angling

    -----------------------------------------

    Comment


      #3
      I've checked my site and it does use https in the discount link. Have you got https: in your website URLin the network settings?

      Mike
      -----------------------------------------

      First Tackle - Fly Fishing and Game Angling

      -----------------------------------------

      Comment


        #4
        If this is from the copy coupon link to the clipboard capability in Marketing, then this seems to be hard-coded in Catalog.exe and that's not something we can patch. I looked in the Library and Design / Text and couldn't find it there.

        There's a slight possibility that this could be fixed on your server by some crafty code in .htaccess. Perhaps an htaccess guru could help.

        You'd need to detect a query string like:
        Code:
        ?DESTINATION=index%2ehtml&BASEURL=http%3a%2f%2fwww%2eoursite%2eco%2euk%2facatalog%2f&COUPON=BlahBlah
        And change the http to https.
        Norman - www.drillpine.biz
        Edinburgh, U K / Bitez, Turkey

        Comment


          #5
          Originally posted by Mike Hughes View Post
          I've checked my site and it does use https in the discount link. Have you got https: in your website URLin the network settings?

          Mike
          Yes It's all as it should be Mike, https everywhere!
          Reusable Snore Earplugs : Sample Earplugs - Wax Earplugs - Women's Earplugs - Children's Earplugs - Music Earplugs - Sleep Masks

          Comment


            #6
            Originally posted by NormanRouxel View Post
            If this is from the copy coupon link to the clipboard capability in Marketing, then this seems to be hard-coded in Catalog.exe and that's not something we can patch. I looked in the Library and Design / Text and couldn't find it there.
            Yes that's where I copied it from. I also looked in Library and Design / Text and couldn't find it. We have a redirect from http to https in .htaccess so it's not a big deal, and in the newsletter I manually corrected the link. But like you say, it would be good to have this hard coded link updated for modern times.
            Reusable Snore Earplugs : Sample Earplugs - Wax Earplugs - Women's Earplugs - Children's Earplugs - Music Earplugs - Sleep Masks

            Comment


              #7
              This is an odd one so I did some testing in a new V16 site.

              To get https: in my copied discount link all I need to do is:

              => Business Settings > Payment and Security - Tick SSL and Whole Site

              Then the link uses the CGI-BIN URL that's entered in the network settings for SSL/TSL and for me the box won't accept anything that's not https:

              It's weird as I can't repeat the problem you're having Jules.

              Mike
              -----------------------------------------

              First Tackle - Fly Fishing and Game Angling

              -----------------------------------------

              Comment


                #8
                Does the BASEURL also show https Mike as in my example earlier? i.e. BASEURL=http%3a%2f%2fwww%2eoursite%2eco%2euk%2facatalog%2f&COUPON=BlahBlah
                Reusable Snore Earplugs : Sample Earplugs - Wax Earplugs - Women's Earplugs - Children's Earplugs - Music Earplugs - Sleep Masks

                Comment


                  #9
                  Ah, right. Sorry Jules, my misunderstanding. I must remember to read everything properly and make sure I understand teh question.

                  No, I also find the BASEURL in the link doesn't have https:

                  To be honest I'm not even sure what that baseurl does as the destination comes from the bit before that and putting something random in the baseurl domain didn't do anything to disrupt the link.

                  Mike
                  -----------------------------------------

                  First Tackle - Fly Fishing and Game Angling

                  -----------------------------------------

                  Comment

                  Working...
                  X