I am currently working on a website that is non ssl for the non eCommerce sections, but uses ssl for the woocommerce portion. I am attempting to redirect reviews of products to a thank you page, which I was able to get working just fine on staging. When moving to the live environment, The comment form is calling the post url as the following: " Where my client's website is using nonhttps urls everywhere except the woocommerce urls. So this is making it call the url as https://website.com/wp-comments-post.php, where it is white screen of deathing. I modified the core file for a moment to test the theory and it worked, I am just unable to find anything that will let me modified the url to change the https to http. I looked into comment_form(), but it doesn't appear to offer a hook or filter for this. Any suggestions?
1条回答 默认 最新
- dqprf0976 2015-04-29 15:07关注
I agree it doesn't make sense to not have https on some pages, especially form input. But doing a redirect for that form url in the .htaccess would be the way to go.
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报