Question: With Razor pages is it possible to create many web pages from a single Razor page?

For example instead of using query strings like:

```
example.com/Movies?ID=1
example.com/Movies?ID=2
...
example.com/Movies?ID=999

```

Create all these from a single Razor page (a single physical razor page on your dev machine):

```
example.com/Movies/1
example.com/Movies/2
...
example.com/Movies/999

```

I know the opposite is true via changes in routing having many URL's relate to a single Razor page.

Answer: 
Here's an example using .Net Core 3.1 and Razor Pages:

[![enter image description here](https://i.stack.imgur.com/Zvmkj.png)](https://i.stack.imgur.com/Zvmkj.png)

In Movies.cshtml you add on line 1 `@page "{ID:int?}"`

[![enter image description here](https://i.stack.imgur.com/8Bi2C.png)](https://i.stack.imgur.com/8Bi2C.png)

In Movies.cshtml.cs you check the value of ID and do something useful with it.

[![enter image description here](https://i.stack.imgur.com/90iiE.png)](https://i.stack.imgur.com/90iiE.png)

In the browser it looks like this:

[![enter image description here](https://i.stack.imgur.com/npynl.png)](https://i.stack.imgur.com/npynl.png)
Maybe you can try routing in RouteConfig.cs OR You can redirect in controller.

In 2.Option you can create a table like this

ID | URL   

1 | link1   

2 | link2

And in controller you can get link from table and redirect to URL.