Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2009
    Posts
    9
    Plugin Contributions
    0

    Default Need www on URL to show to use SSL certificate

    I am in the middle of developing a Zencart site and just purchased a SSL Certificate in the form of www.mysite.co.uk.

    However once I have enabled the site to use SSL it is looking for the the certificate in the form of just mysite.co.uk with no www.

    I have spoke to the hosting company to try and change this but they said that it is best and most common to use the www.mysite.co.uk format and to go into the settings and specify zencart to use a www. prefix.

    I have tried forcing the site to do this using this code in the htdocs
    Code:
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^mysite.co.uk$
    RewriteRule ^(.*)$ http://www.mysite.co.uk/$1 [R=301,L]
    But the site will not work properly in the checkout it just refreshes the 1st page

    Is there a setting in Zencart which can change the entire site to use www or a simple way of doing it that will make the site still work?

    I am using 1.3.8 and the basic credit card module

  2. #2
    Join Date
    Apr 2006
    Location
    West Salem, IL
    Posts
    2,887
    Plugin Contributions
    0

    Default Re: Need www on URL to show to use SSL certificate

    In the includes/configure.php and admin/includes/configure.php make sure the defines for 'HTTP_SERVER' and 'HTTPS_SERVER' have the www. in them
    Mike
    AEIIA - Zen Cart Certified & PCI Compliant Hosting
    The Zen Cart Forum...Better than a monitor covered with post-it notes!

 

 

Similar Threads

  1. SSL Certificate for domain with "www" OR without "www" ?
    By Semenek in forum General Questions
    Replies: 8
    Last Post: 9 Jun 2011, 12:14 AM
  2. ssl certificate issue?? www. vs not?
    By jrod31 in forum General Questions
    Replies: 3
    Last Post: 6 Nov 2009, 03:16 AM
  3. Replies: 14
    Last Post: 21 Sep 2009, 11:59 PM
  4. how to use a shared ssl certificate?
    By ewalker3 in forum Managing Customers and Orders
    Replies: 17
    Last Post: 30 Nov 2006, 03:58 PM
  5. Use www prefix for SSL?
    By lawman in forum General Questions
    Replies: 3
    Last Post: 30 May 2006, 04:32 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg