Rewriting subdirectory to query string parameter – Apache
I have two requirements; That, for example, /product/12345 is internally redirected to /product/product.php?product=12345. That if the user tries to access /product/product.php in the URL bar, it is redirected to /product/ for tidiness. Separate, they both work correctly, but together it…