Add dynamic prefix into url

thank for reading,
i have searched on github but have not plugin,
you can write some simple demo to do it?