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

前端 未结 6 2025
野趣味
野趣味 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:32

    I had the same problems but my htacces was like this:

    RewriteEngine on
    RewriteRule .* index.php [NC]
    

    Just change NC for L and everything works fine.

    Final code:

    RewriteEngine on
    RewriteRule .* index.php [L]
    

提交回复
热议问题