Mobile app version of vmapp.org
Login or Join
Odierno851

: Nodejs Express - How to point two urls to single html page I have an HTML page template (player.html) which displays Football players information and information is loaded on to page using a

@Odierno851

Posted in: #Html #NodeJs #Seo

I have an HTML page template (player.html) which displays Football players information and information is loaded on to page using a rest API call. When the user select "Ronaldo" from a dropdown, Ronaldo's profile will be loaded to a HTML page called player.html. When "Messi" is selected as the option, the HTML page will display Messi's information.

Irrespective of the player selection my application URL remains the same (https://example.com/player.html) in the current scenario.

I would like to change URL to example.com/messi or example.com/ronaldo based on the user selection. I know it's possible if I render the page from server side. As my template is very complicated, I am finding it tough to render from server and also I feel it's difficult to maintain.

Can some one suggest an alternate to point two URLs to same HTML template?

I am using Nodejs Express framework for the backend and HTML & boostrap CSS framework for the front end development.

10% popularity Vote Up Vote Down


Login to follow query

More posts by @Odierno851

0 Comments

Sorted by latest first Latest Oldest Best

Back to top | Use Dark Theme