.htaccess remove “?page=”

I have two questions, both related: Using the example url: https://www.example.com/?page=foo.php How do I use .htaccess to write that out as: https://www.example.com/foo The second part Using the …

HTACCESS URL Re-write

How do I retrieve the abc123 part of the URL below with .htaccess please? https://a.com/product/abc123 I need to use the abc123 part to create a query. Ordinarily, I know this can be achieved with: …