mod_rewrite to remove .php extension AND preserve GET parameters
问题 I have looked at these solutions and none of them actually work properly on my end: mod_rewrite to remove .php but still serve the .php file? How to remove file extension from website address? How to use Apache Mod_rewrite to remove php extension, while preserving the GET parameters? and they just don't do the following, which is what I need done: 1) remove .php extension from files and instead of /index.php display /index 2) preserve GET parameters (which I read and store in session cookies