I have url like this http://site.com/register/ and at register page with next step something like register/step1-> register/step2...register/stepn i want to use Client routing. It still work fine unti i refresh or copy the link sent for my friend. The friend open that link follow by the request goes to the server after that server figures out this page is note exist on CMS and response 404
The problem with this kind of approach is that the URL structure that lives in the client application does not match the one that lives on the server
So my question: How to combining Server with Client Routing in Episerver?
You can use PartialRouter and "catch-all" routing endpoint to handle your scenario. Check out the following articles for more details.
Combining Server with Client Routing in Episerver | Niteco
Add Client Side Routing in ASP.NET Core | BinaryIntellect Knowledge Base