Remove URL Parameters and have it like folders (PHP)

Let's say I have a URL like...

Is there a way to make it look like the following instead?

I can send my website like that, but then it wont style it correctly because there is no index for 123456789; I wasn't sure if .htaccess can handle that.