Neophobe Plebeian Mumpsimus

    now-redirect

    1.1.1 • Public • Published

    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

    Keywords

    Install

    npm i now-redirect

    DownloadsWeekly Downloads

    11

    Version

    1.1.1

    License

    MIT

    Last publish

    Collaborators

    • vdanchenkov