Jump to content

Cart is Redirecting


LaughingHorse

Recommended Posts

I just noticed today December 22 that my cart is redirecting every product page someplace else.

For example I enter:

https://emperorsherbologist.com/extra-dark-chocolate6oz

And I get redirected to my WP URL

With a URL
https://emperorsherbologist.com/wp/?seo_path=extra-dark-chocolate6oz

I can get to the cart with no redirect

https://emperorsherbologist.com/cart/

 

and when I click on a product in the cart, I get redirected to the main wordpress page wih a URL of

https://emperorsherbologist.com/wp/?seo_path=[whatever the cart url should be]

I'm using Foundation skin, and did nothing to change anything on it. Everything was working properly earlier.

Link to comment
Share on other sites

This may be caused by a mod_rewrite directive in .htaccess that is interfering.

Looking at the non-distinctive source URL, I do not see the /cart/ in the URL path.

Do you have a rewrite directive somewhere that adds /wp/ to non-distinctive URLs? That is, dealing with a URL that does not specify /wp/ or /cart/?

Link to comment
Share on other sites

I had a similar thing happen with the /seo_path inserted. when I changed from http to https.

ie

http://www.harrisorganicwine.com.au/shop/dry-whites/verdelho13.html becomes

https://www.harrisorganicwine.com.au/shop/index.php?seo_path=dry-whites/verdelho13

I sent this to Al and he said he would look into it.

Link to comment
Share on other sites

Bsmither, yeah I think it is some mod rewrites that are causing this. I was trying to get the old part (top level) which has high rankings to permanent redirect (301) to the wp section. So I used the cPanel redirects. After removing them, the error was gone. But there are no redirects. So I'm now looking for code that will automatically redirect a page like https:mysite.com/mypage.php to https://mysite.com/wp/mypage

harrisorganic you may need to do a modrewrite and put it in your .htaccess file

This is what I use and I have had no problem:

# Force redirect to https
RewriteEngine On         
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
# End redirect

Just copy and paste into your .htaccess file

Also make sure your settings in your cart are set for https

Admin | Store Settings | SSL

[Enable SSL] YES

[Store URL]: Your store's FULL URL https://mystoreexample.com/cart (or whatever your store URL is)

and the cookie dominan .mystoreexample

Of course you will change the "mystoreexample" to your correct info :)

What do you sell? Strictly wine, or other things as well?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...