I use Webpack dev server and browserHistory in React Router to manipulate with urls by HTML5 History API. historyapifallback-option does not work in my webpack config file.
I had this problem and was only able to fix it using index: '/' with webpack 4.20.2
index: '/'
historyApiFallback: { index: '/' }