htaccess for simple PHP API

Questionshtaccess for simple PHP API
sethbeckerman5 Staff asked 4 years ago

I am completly new to htaccess, never have to do it on my own. But its time.
I have a simple PHP API, so I need redirect all urls to index.php (PHP will handle routing), so

Goes to

This is quite simple i gues?

But than I need one more thing and thats, when the last sequence of url is number like:

It Should Go to
Goes to

Is there even a way to do that, or should I start work on PHP solutiuon?
Thanks


View on Stack Overflow