简体   繁体   中英

What is the equivalent of PHP Url rewriting (htaccess) in Angular 7?

I'm making an angular 7 and nodeJS website and I want to use htaccess to make URL rewriting . Is it possible? Is there an other way to do it?

app.get('/origin_url', function(req, res) {
  res.redirect('/another_url');
});

https://expressjs.com/en/api.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM