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.

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

报告相同问题?

悬赏问题

  • ¥15 Python爬取指定微博话题下的内容,保存为txt
  • ¥15 vue2登录调用后端接口如何实现
  • ¥65 永磁型步进电机PID算法
  • ¥15 sqlite 附加(attach database)加密数据库时,返回26是什么原因呢?
  • ¥88 找成都本地经验丰富懂小程序开发的技术大咖
  • ¥15 如何处理复杂数据表格的除法运算
  • ¥15 如何用stc8h1k08的片子做485数据透传的功能?(关键词-串口)
  • ¥15 有兄弟姐妹会用word插图功能制作类似citespace的图片吗?
  • ¥15 latex怎么处理论文引理引用参考文献
  • ¥15 请教:如何用postman调用本地虚拟机区块链接上的合约?