Here is the sliced url (we dont need it in future)

controller.php



Controller, Pick a file and read its content

This is a bit im confused in so you want replace the url with the text file words?