Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
app
 
 
bin
 
 
 
 
 
 
 
 

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

About

No description, website, or topics provided.

Resources

Packages

No packages published