ProductCart E-Commerce Solutions Homepage
Forum Home Forum Home > ProductCart > Using ProductCart
  New Posts New Posts RSS Feed - Bring products in cart over to domain without WWW?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Bring products in cart over to domain without WWW?

 Post Reply Post Reply
Author
Message
padreick View Drop Down
Newbie
Newbie
Avatar

Joined: 20-February-2012
Status: Offline
Points: 24
Post Options Post Options   Thanks (0) Thanks(0)   Quote padreick Quote  Post ReplyReply Direct Link To This Post Topic: Bring products in cart over to domain without WWW?
    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
Back to Top
Greg Dinger View Drop Down
Certified ProductCart Developers
Certified ProductCart Developers
Avatar

Joined: 23-September-2006
Location: United States
Status: Offline
Points: 238
Post Options Post Options   Thanks (0) Thanks(0)   Quote Greg Dinger Quote  Post ReplyReply Direct Link To This Post 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 to 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.MyDomain.com/{R:1}" />
                </rule>
            </rules>
        </rewrite>
    </system.webServer>
</configuration>
Back to Top
ProductCart View Drop Down
Admin Group
Admin Group

ProductCart Team

Joined: 01-October-2003
Status: Offline
Points: 135
Post Options Post Options   Thanks (0) Thanks(0)   Quote ProductCart Quote  Post ReplyReply Direct Link To This Post Posted: 11-July-2013 at 12:46pm
The ProductCart Team

Home of ProductCart shopping cart software
Back to Top
Greg Dinger View Drop Down
Certified ProductCart Developers
Certified ProductCart Developers
Avatar

Joined: 23-September-2006
Location: United States
Status: Offline
Points: 238
Post Options Post Options   Thanks (0) Thanks(0)   Quote Greg Dinger Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
padreick View Drop Down
Newbie
Newbie
Avatar

Joined: 20-February-2012
Status: Offline
Points: 24
Post Options Post Options   Thanks (0) Thanks(0)   Quote padreick Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Greg Dinger View Drop Down
Certified ProductCart Developers
Certified ProductCart Developers
Avatar

Joined: 23-September-2006
Location: United States
Status: Offline
Points: 238
Post Options Post Options   Thanks (0) Thanks(0)   Quote Greg Dinger Quote  Post ReplyReply Direct Link To This Post Posted: 11-July-2013 at 2:26pm
Was there a reason you wanted it to be 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.
Back to Top
padreick View Drop Down
Newbie
Newbie
Avatar

Joined: 20-February-2012
Status: Offline
Points: 24
Post Options Post Options   Thanks (0) Thanks(0)   Quote padreick Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Greg Dinger View Drop Down
Certified ProductCart Developers
Certified ProductCart Developers
Avatar

Joined: 23-September-2006
Location: United States
Status: Offline
Points: 238
Post Options Post Options   Thanks (0) Thanks(0)   Quote Greg Dinger Quote  Post ReplyReply Direct Link To This Post Posted: 11-July-2013 at 10:31pm
Let me know if I can further assist.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.032 seconds.