Using the history API, I will have to be generated, for example, flowers.
Ie when you click on a flower on the main (/) the link will look like this: /flowers/rose
But what to do with .htaccess? Because when you go to that link, the server will try to give the page that does not exist.
In General, it is necessary that all /flowers/***** was redirecting to the main, but the address remained