Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

nodejs redirect to url

// In Express
router.get('*',function(req,res){  
    res.redirect('http://exmple.com'+req.url)
})
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #nodejs #redirect #url
ADD COMMENT
Topic
Name
2+7 =