http - How to redirect /:id to /:id/:name -


suppose have row in db (id: 1234, name: "some_movie"). when user type /movie/1234, want redirect them /movie/1234/some_movie , show page.

to that, need query db name when user hits /movie/1234, query again when user hits url /movie/1234/some_movie.

my question is, using global temp hash or cache server best way deal ?


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -