I don't know if the address is confused because of react-router,. PHP is in the background.

my routing configuration is like this

            <Router>
                <Switch>
                    <Route path="/yjs" component={YJS}></Route>
                    <Route path="/ycc" component={YCC}></Route>
                    <Route path="/yd" component={YD}></Route>
                    <Route path="/wwh" component={WWH}></Route>
                    <Route path="/tyw" component={TYW}></Route>
                    <Route path="/ys" component={YS}></Route>
                    <Route path="/sfz" component={SFZ}></Route>
                    <Route path="/yyc" component={YYC}></Route>
                    <Route exact path="/home" component={Home}></Route>
                    <Redirect to="/home"></Redirect>
                </Switch>
            </Router>

now that it is packaged and put on the server, there is such a problem
for example: the address of the
project is
codeshelper.com/ project name / index.html

should have been opened
codeshelper.com/ project name / home

but when opened in a browser, the address bar automatically changes to
codeshelper.com/home

routing functions are normal, components can access, but the address automatically changes to "server root address / routing address", refresh can no longer open the project

I don"t know if it"s a front-end problem or a background problem.
checked on Baidu. I don"t know if it is necessary to set browserHistory

.

react-router provides the basename attribute to configure multi-level directories

Is
  

a problem with nginx proxy configuration?

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1ea1a1b-1b6f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1ea1a1b-1b6f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?