Is there any way to get the id
from a beautified URL? I have a beautified an URL with .htaccess
:
Old URL: https://example.com/products.php?id=UDn4LdBa3yy
new URL: https://example.com/product/UDn4LdBa3yy
Now I need to get the id
form the URL with javascript. But a standard javascript function to split the URL at the =
doesn't work anymore.