1.1.1 • Published 9 years ago
now-redirect v1.1.1
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-redirectUsage
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.comYou can swap www.example.com and example.com if you wish requests to www.example.com be redirected to example.com.