I deployed an Angular 6 application on Google App Engine. The app.yaml config looks like that:
runtime: python27
api_version: 1
threadsafe: true
skip_files:
The reason why 404 Not Found is showing on page refresh is that all Angular2 routes should be served via the index.html file.
You can fix this issue by adding a .htaccess file (in the same directory where the index.html resides) with the following contents.
RewriteEngine On
RewriteBase /
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.html [L]