#paste this in nginx conf file
location / {
if (!-e $request_filename){
rewrite ^(.*)$ /index.html break;
}
}
RewriteBase /
RewriteRule ^index.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.html [L]
//include this in .htaccess in root directory
location / {
if (!-e $request_filename){
rewrite ^(.*)$ /index.html break;
}
}