sintaxi / surge

CLI for the surge.sh CDN
https://surge.sh
2.87k stars 136 forks source link

React router dont work explicitly #221

Closed mesutyigit closed 8 years ago

mesutyigit commented 8 years ago

Routing working inside application via react-router, but explicitly writing url to address bar and entering doesnt work "page not found".

image

danreeves commented 8 years ago

You should use 200.html instead of index.html. Here are the docs: http://surge.sh/help/adding-a-200-page-for-client-side-routing

mesutyigit commented 8 years ago

@danreeves Thanks. Its OK now.