LaughingHorse Posted December 23, 2015 Share Posted December 23, 2015 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-chocolate6ozAnd I get redirected to my WP URLWith a URLhttps://emperorsherbologist.com/wp/?seo_path=extra-dark-chocolate6ozI can get to the cart with no redirecthttps://emperorsherbologist.com/cart/ and when I click on a product in the cart, I get redirected to the main wordpress page wih a URL ofhttps://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. Quote Link to comment Share on other sites More sharing options...
bsmither Posted December 23, 2015 Share Posted December 23, 2015 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/? Quote Link to comment Share on other sites More sharing options...
harrisorganic Posted December 23, 2015 Share Posted December 23, 2015 I had a similar thing happen with the /seo_path inserted. when I changed from http to https.iehttp://www.harrisorganicwine.com.au/shop/dry-whites/verdelho13.html becomeshttps://www.harrisorganicwine.com.au/shop/index.php?seo_path=dry-whites/verdelho13I sent this to Al and he said he would look into it. Quote Link to comment Share on other sites More sharing options...
LaughingHorse Posted December 23, 2015 Author Share Posted December 23, 2015 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/mypageharrisorganic you may need to do a modrewrite and put it in your .htaccess fileThis 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 redirectJust copy and paste into your .htaccess fileAlso make sure your settings in your cart are set for httpsAdmin | 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 .mystoreexampleOf course you will change the "mystoreexample" to your correct info What do you sell? Strictly wine, or other things as well? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.