I have a question,how to make url shortener?
for example i have this url "localhost/public/action/1"
become like this "/action/1"

I've watched how to make url shortener from Jeffery Way,but I'd like to make url shortener without using database,but get url as the parameter for the shortened url.Thanks in advance