I’ve searched for this question but I only come across really specific answers that seem difficult to tailor to my specific needs.
Let’s say the URL I’m attempting to rewrite is this:
http://www.example.org/test.php?whatever=something
I want to rewrite it so that it appears as this:
http://www.example.org/test/something
How can I do this?
In order to route a request like
/test/somethingto internally rewrite so that the content at/test.php?whatever=somethinggets served, you would use these rules in the htaccess file in your document root:And in order to redirect the query string URL to the nicer looking one: