Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

HOW TO AVOID 404 ERROR WHEN RELOAD A PAGE IN REACT?-REACTJS

location / {
  if (!-e $request_filename){
    rewrite ^(.*)$ /index.html break;
  }
}
Source by www.appsloveworld.com #
 
PREVIOUS NEXT
Tagged: #HOW #TO #AVOID #ERROR #WHEN #RELOAD #A #PAGE #IN
ADD COMMENT
Topic
Name
6+4 =