Simple microservice to redirect to an url
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore ignore the `node_modules` directory Jun 6, 2017
Dockerfile Update to Cloud v2 (#11) Aug 4, 2018
README.md Readme++ Sep 20, 2017
now.json Update to Cloud v2 (#11) Aug 4, 2018
package.json Update to Cloud v2 (#11) Aug 4, 2018
server.js ensure a trailing slash is on the REDIRECT_URL Nov 30, 2017

README.md

Now Redirect

Simple microservice to redirect to an url

Usage

If you haven't installed now already, start by following these instructions

To deploy the service use the following command:

now now-examples/redirect

You'll be asked to provide REDIRECT_URL. An example REDIRECT_URL is: https://www.example.com

After the deployment is complete you can create an alias for your custom domain:

now alias <unique-deployment-url> example.com

In this example you've made a redirect from:

https://example.com ⟶ https://www.example.com

On now every subdomain is unique. So example.com and www.example.com can be 2 different instances. This is useful when you want to, for example, redirect from non-www to www.

Authors