Results 1 to 4 of 4
  1. #1
    Join Date
    Dec 2010
    Posts
    3
    Plugin Contributions
    0

    Default Different domain name for shop

    Hi

    After a clients site and specifically zencart were hacked, I was brought in to resolve the issues, secure the site and once everything is up and hunky dory, get the connection to the Payment company working (as payment was offline before).

    I usually work on intranets and therefore understand PHP, MySQL XML and JSP. The public websites have never needed SSL or anything apart from basic read only security.

    So I have fixed the zencart and reimported all the MYSQL data from a known good backup. Secured it all.

    Then to implement SSL.

    The process I went through asked for the domain name for the actual certificate (not the FQDN) So I input the domain name mywebsite.co.uk.

    I now realise that this means that it will not work for https://www.mywebsite.co.uk only https://mywebsite.com

    With the main website having links to the shopping cart redirecting to https://mywebsite.com/zencart/index.php and the configure.phps both having this as their https path and SSL as true I assumed that this would work.

    But although the index.php is ok and https any links on the cart send the customer tp to unsecured http pages not https pages.

    Is there any fix for this or do I need a site SSL Certificate for www.mywebsite.co.uk instead.

    Oh and if anyone wants a gander at a trojan written in php (so you can read the innards) I have one, quite interesting but spawned loads of lifeless php scripts (70 in total)

    Any advice and help would be greatly appreciated

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,873
    Plugin Contributions
    96

    Default Re: Different domain name for shop

    Three files need to be changed:

    1. /.htaccess

    Code:
    RewriteEngine On 
    RewriteCond %{HTTP_HOST} ^www.domain.com$ [NC]
    RewriteRule ^(.*)$ http://domain.com/$1 [R=301,L]
    That update removes the www from your URL.

    2. /includes/configure.php

    Code:
      define('HTTP_SERVER', 'http://domain.com');
      define('HTTPS_SERVER', 'https://domain.com');
    3. /YOURADMIN/includes/configure.php

    Code:
      define('HTTP_SERVER', 'http://domain.com');
      define('HTTPS_SERVER', 'https://domain.com');
      define('HTTP_CATALOG_SERVER', 'http://domain.com');
      define('HTTPS_CATALOG_SERVER', 'https://domain.com');
    The previous two updates make sure that the generated links to your site don't include the www.

  3. #3
    Join Date
    Dec 2010
    Posts
    3
    Plugin Contributions
    0

    Default Re: Different domain name for shop

    Thankyou so much you are a star.

  4. #4
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,873
    Plugin Contributions
    96

    Default Re: Different domain name for shop

    I'm glad I could help ...

 

 

Similar Threads

  1. domain name: shop.com vs www.shop.com
    By Ms_X in forum General Questions
    Replies: 2
    Last Post: 15 Jan 2011, 02:28 PM
  2. Replies: 3
    Last Post: 11 Dec 2010, 08:58 AM
  3. My Domain Name has .com./shop
    By trisha1581 in forum General Questions
    Replies: 2
    Last Post: 1 Feb 2010, 01:18 AM
  4. Wouldn't install on my paid domain name - shop works but wrong URLs
    By ningyotan in forum Installing on a Windows Server
    Replies: 7
    Last Post: 14 Nov 2009, 04:24 AM
  5. Replies: 4
    Last Post: 11 May 2008, 11:25 AM

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