Yes, I know, there are tons of questions like this, but I can't find one which solves my problem so at cost of receiving downvotes I'm going to ask this again. Even a duplicate link may help me.
This is a job that I've never done before, I have this kind of URL demo.html?code=IT-ROM-FCO where:
ITis the IATA code for "Italy"ROMis the IATA code for "Rome"FCOis the IATA code for "Aeroporto di Roma Fiumicino".
I have to rewrite the above URL to display like this airports/italy/rome/aeroporto-di-roma-fiumicino, the strings for the result are coming from an API service.
I know the simple rewrite to change products.php?id=7 to products/7 but I never done such task (get an URL - retrieve some data in PHP w/ the given code - "pretty" print the new url)