Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react refresh 404 error

#paste this in nginx conf file
location / {
  if (!-e $request_filename){
    rewrite ^(.*)$ /index.html break;
  }
}
Source by ui.dev #
 
PREVIOUS NEXT
Tagged: #react #refresh #error
ADD COMMENT
Topic
Name
7+3 =