How can I use mod_rewrite to remove everything after the ? (question mark) in a URL?
For instance:
http://127.0.0.1/ALL_FILES.php?test=1
after mod_rewrite:
http://127.0.0.1/ALL_FILES.php
For php this means that the $_GET super global will always be empty.
Quoting from the mod_rewrite docs:
Something along the lines of:
should do what you need. If you don't care about what is displayed to the user, but only what gets passed down to php, you can leave out the R flag.