vendredi 18 août 2017

Alter hostname in Express request

Is there a way to alter the hostname for a request on an express web server? Lets say i have web server that can be hit via the following urls:

http://ift.tt/2uYsyhI and https://servername/login

is there a way to route all requests that use "https://servername/login" to "http://ift.tt/2uYsyhI" ? I know this can be done via apache with the RewriteRule and .htaccess file.

Thanks




Aucun commentaire:

Enregistrer un commentaire