1.1.1 • Published 9 years ago

now-redirect v1.1.1

Weekly downloads
4
License
MIT
Repository
github
Last release
9 years ago

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

1.1.1

9 years ago

1.1.0

9 years ago

1.0.3

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago