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

html - How to custom Bootstrap grid height? -

javascript - pass values from mssql to views in node -

ruby - unknown property method: 'wait' on EC2 windows server Instance -