Seems like POST values are lost when .htaccess RewriteRule used. GET values are OK. How to fix?

前端 未结 6 1887
野趣味
野趣味 2020-12-01 18:54

Several days ago I had a question about removing index.php from the address bar, so the address of the page looks shorter and better. The shortest solution of this problem w

6条回答
  •  有刺的猬
    2020-12-01 19:16

    You could try using [L,R=307] instead. 307's must not change the request-method according to the spec, but I don't know how browser implemented 307.

    But the root of the problem is the use of

    Just leave the action empty to POST to the current url e.g.

提交回复
热议问题