Why $_POST is empty when using [QSA] in .htaccess?
问题 I've got the following in .htaccess: RewriteCond %{REQUEST_URI} !app/index\.php$ RewriteRule ^(.*\.htm)$ index.php?url=$0 [QSA,L] Everyting works great but result URLs have empty $_POST. I'm 100% sure that it's mod_rewrite bug, not HTML or PHP because when I change [QSA,L] to [L] it works great. But I really need QSA. It happens at about 30% hostings so this may be some Apache config option. 回答1: What about modifying your rule in this way. Does it change anything? RewriteRule ^(.*)\.htm$