duanchun6148 2015-04-29 14:53
浏览 47
已采纳

Wordpress - 在wp-includes / comments-template.php中更改表单操作URL

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.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥20 docker里部署springboot项目,访问不到扬声器
  • ¥15 netty整合springboot之后自动重连失效
  • ¥15 悬赏!微信开发者工具报错,求帮改
  • ¥20 wireshark抓不到vlan
  • ¥20 关于#stm32#的问题:需要指导自动酸碱滴定仪的原理图程序代码及仿真
  • ¥20 设计一款异域新娘的视频相亲软件需要哪些技术支持
  • ¥15 stata安慰剂检验作图但是真实值不出现在图上
  • ¥15 c程序不知道为什么得不到结果
  • ¥15 键盘指令混乱情况下的启动盘系统重装
  • ¥40 复杂的限制性的商函数处理