![]() |
Bring products in cart over to domain without WWW? |
Post Reply ![]() |
Author | |
padreick ![]() Newbie ![]() ![]() Joined: 20-February-2012 Status: Offline Points: 24 |
![]() ![]() ![]() ![]() ![]() 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 |
|
![]() |
|
Greg Dinger ![]() Certified ProductCart Developers ![]() ![]() Joined: 23-September-2006 Location: United States Status: Offline Points: 238 |
![]() ![]() ![]() ![]() ![]() |
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 <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> |
|
![]() |
|
ProductCart ![]() Admin Group ![]() ProductCart Team Joined: 01-October-2003 Status: Offline Points: 135 |
![]() ![]() ![]() ![]() ![]() |
Please refer to the following WIKI article:
|
|
![]() |
|
Greg Dinger ![]() Certified ProductCart Developers ![]() ![]() Joined: 23-September-2006 Location: United States Status: Offline Points: 238 |
![]() ![]() ![]() ![]() ![]() |
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.
|
|
![]() |
|
padreick ![]() Newbie ![]() ![]() Joined: 20-February-2012 Status: Offline Points: 24 |
![]() ![]() ![]() ![]() ![]() |
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.
|
|
![]() |
|
Greg Dinger ![]() Certified ProductCart Developers ![]() ![]() Joined: 23-September-2006 Location: United States Status: Offline Points: 238 |
![]() ![]() ![]() ![]() ![]() |
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.
|
|
![]() |
|
padreick ![]() Newbie ![]() ![]() Joined: 20-February-2012 Status: Offline Points: 24 |
![]() ![]() ![]() ![]() ![]() |
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. |
|
![]() |
|
Greg Dinger ![]() Certified ProductCart Developers ![]() ![]() Joined: 23-September-2006 Location: United States Status: Offline Points: 238 |
![]() ![]() ![]() ![]() ![]() |
Let me know if I can further assist.
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |