I had exactly this problem. It runs on one server, and then not on the next. Annoying and time consuming!
After a big check using this php:
foreach ($_REQUEST AS $key => $value) echo $value."<br>";
at the top of index.php to check which values ββwere sent from the htaccess file (and many other checks that I wonβt enter!) In the end, I found that you need to specify "RewriteBase"
Adding RewriteBase / to the top of the htaccess file made it work on all the servers I tried.
(also do not forget to set: RewriteBase /folder-where-file-is/ where "folder-where-file-is" is the location of the index.php file, if in a subfolder)
Hope this helps you - knowing that it would certainly help me many hours ago!
source share