items don't get added to cart first time

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
12 年 前
site was setup for https://www.domain.com;

the hosting service by default had http://domain.com point to the same website;

a person could browse the http://domain.com and 'add' a product to their cart, when they did it would redirect them to the ssl version of the site 'https://www.domain.com'; and their cart would be empty. the non-ssl version was setup to be 'http://www.domain.com'


i've added a redirect in the 'http://domain.com' to redirect to 'http://www.domain.com'; it will take awhile for it to update, but i'll post an update once that's setup to see if the problem has been fixed.
12 年 前
i can't get the error to show up anymore;

poor oversight on my part, I'd made this change on other websites I setup; but I missed this one.
11 年 前
How do you add a redirect the way you did?
I'm having the same exact problem on Arvixe.
11 年 前
MediaCarbon wrote:
How do you add a redirect the way you did?
I'm having the same exact problem on Arvixe.


heh, guess I should have shared that- you will need to add a rewrite rule to the Web.config, I used IIS Manager to create the rules for me, here are the outputs

change 'websitename' to your domain name and put this in your web.config

<rewrite>
      <rules>
        <rule name="CanonicalHostNameRule1">
          <match url="(.*)" />
          <conditions>
            <add input="{HTTP_HOST}" pattern="^www\.websitename\.com$" negate="true" />
          </conditions>
          <action type="Redirect" url="http://www.websitename.com/{R:1}" />
        </rule>
      </rules>
    </rewrite>

in my web.config this code was between the </handlers> and <staticContent>
11 年 前
Thanks!
I'll try it and post the results.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.