No description, website, or topics provided.
Clone or download
vdanchenkov Merge pull request #3 from ntwcklng/master
Host for redirect as name for deployment
Latest commit 9c58c29 Dec 7, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app use bin argument Nov 30, 2017
bin strip http from deployment name Nov 30, 2017
.gitignore Initial commit Sep 5, 2016
README.md update screenshot Oct 9, 2016
package.json 1.1.1 Oct 9, 2016
screenshot.png update screenshot Oct 9, 2016

README.md

now-redirect

now-redirect is a 𝚫 now CLI tool for easily deploying redirects like example.com to www.example.com.

A single command generates and deploys an app that redirects all requests to one URL to another URL. DNS for these domains must already be configured for zeit.world.

Installation

npm install -g now now-redirect

Usage

From any folder:

# Generate & deploy app that redirects all inbound requests to www.example.com
now-redirect www.example.com

# Alias deploymentUrl from the previous command to the URL that needs redirected
now alias [deploymentUrl] example.com

# Congrats! Requests to example.com will be redirected to www.example.com

You can swap www.example.com and example.com if you wish requests to www.example.com be redirected to example.com.

Example

Screenshot of the app