Print Page | Close Window

Bring products in cart over to domain without WWW?

Printed From: ProductCart E-Commerce Solutions
Category: ProductCart
Forum Name: Using ProductCart
Forum Description: Running your store with ProductCart
URL: https://forum.productcart.com/forum_posts.asp?TID=5666
Printed Date: 10-March-2025 at 4:30pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Bring products in cart over to domain without WWW?
Posted By: padreick
Subject: Bring products in cart over to domain without WWW?
Date Posted: 11-July-2013 at 12:35pm
I have an SSL certificate currently covering  MyDomain.com. However, people may be coming from www.MyDomain.com when they click 'Checkout.' This causes the shopping cart to be empty once they reach https://MyDomain.com.

Is there a way to keep products in the cart when moving between the two? Sending the products with the request or keeping the session when staying on the same IP?

Thanks



Replies:
Posted By: Greg Dinger
Date Posted: 11-July-2013 at 12:44pm
Place the following into web.config, in the root of your site, editing for your domain name.  This will force all requests for http://mydomain.com" rel="nofollow - http://mydomain.com to http://www.mydommain.com" rel="nofollow - http://www.mydommain.com
 
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <rewrite>
            <rules>
                <rule name="CanonicalHostNameRule1">
                    <match url="(.*)" />
                    <conditions>
                        <add input="{HTTP_HOST}" pattern="^www\.MyDomain\.com$" negate="true" />
                    </conditions>
                    <action type="Redirect" url=" http://www.avivjudaica.com/%7bR:1" rel="nofollow - http://www.                </rule>
            </rules>
        </rewrite>
    </system.webServer>
</configuration>


-------------
GreyBeard Design Group

Certified ProductCart Developer

Web Design/Development/Hosting

http://tinyurl.com/5c8t4t" rel="nofollow - Add-Ons & Custom Code |


Posted By: ProductCart
Date Posted: 11-July-2013 at 12:46pm
Please refer to the following WIKI article:

http://wiki.earlyimpact.com/developers/timeout-issues#use_of_different_domain_names" rel="nofollow - http://wiki.earlyimpact.com/developers/timeout-issues#use_of_different_domain_names


-------------
The ProductCart Team

Home of ProductCart http://www.productcart.com" rel="nofollow - shopping cart software


Posted By: Greg Dinger
Date Posted: 11-July-2013 at 12:46pm
Also please ask your host, assuming your site is on IIS7, that they confirm the following.
 
On the ASP tab in IIS, the "new ID on Secure Connection" must be set to FALSE.


-------------
GreyBeard Design Group

Certified ProductCart Developer

Web Design/Development/Hosting

http://tinyurl.com/5c8t4t" rel="nofollow - Add-Ons & Custom Code |


Posted By: padreick
Date Posted: 11-July-2013 at 1:23pm
Greg,

Thanks for the quick response. I'm not sure how the webconfig change would work. The SSL certificate is connected to https://MyDomain.com. So redirecting everyone to www.MyDomain.com would produce an error as it treats MyDomain.com and www.MyDomain.com as 2 separate sites.

Also, I have a dedicated server so I was able to make the IIS change myself. I saw that suggested when I was doing some research on the subject but it didn't make a difference.


Posted By: Greg Dinger
Date Posted: 11-July-2013 at 2:26pm
Was there a reason you wanted it to be https://MyDomain.com" rel="nofollow - https://MyDomain.com instead of www?  Who issued the SSL?  It might be possible to ask the SSL provider to re-issue the cert, and that would resolve much of this.
 
I'm going to be away from my desk for a few hours in case you have other questions, so don't despair if I don't reply until later.


-------------
GreyBeard Design Group

Certified ProductCart Developer

Web Design/Development/Hosting

http://tinyurl.com/5c8t4t" rel="nofollow - Add-Ons & Custom Code |


Posted By: padreick
Date Posted: 11-July-2013 at 2:37pm
It was just my inexperience with IIS and SSL. I thought the WWW record being a CNAME/binding meant it was still treated as part of the main domain, and since they were both pointing to the same location/database, the session wouldn't be lost(whoops). I came here to see if there was some sort of quick ASP fix to pass the session variables on, but I've actually just emailed Geotrust about reissuing the certificate with the WWW.


Thanks for your help.


Posted By: Greg Dinger
Date Posted: 11-July-2013 at 10:31pm
Let me know if I can further assist.

-------------
GreyBeard Design Group

Certified ProductCart Developer

Web Design/Development/Hosting

http://tinyurl.com/5c8t4t" rel="nofollow - Add-Ons & Custom Code |



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net