How to set up when the domain name www.abc.com is entered, the domain name is automatically added after the domain name index, to www.abc.com/index is displayed on the home page.

after the browser enters the www.abc.com domain name,
automatically becomes www.abc.com/index , and
if you enter www.abc.com?test=test ,
automatically becomes www.abc.com/index?test=test
how is this set?


Route redirection
react-router Route Writing (import basic components first)

  <HashRouter>
        <Switch>        
         
          <Route path="/index"  component={home} />
          <Route path="/record" component={record} /> 
          <Redirect from="/" to="/index"  />
        </Switch>
      </HashRouter>

vue-router

 {
      path: '/',
      redirect: '/index',
},
{ 
      path: '/index',
      name: 'index',
      component: home,
    
}
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-1e85855-46b25.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-1e85855-46b25.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?