Noosphere Possibilities Maximized

    connect-url-rewrite

    0.1.0 • Public • Published

    Connect/Express URL Redirect Middleware

    Connect/Express middleware for rewriting URLs using regular expressions (like mod_rewrite).

    Usage

     
    // Require the middleware
    rewrite = require("connect-url-rewrite");
     
    // Build your redirect rules
    rules = [
      "^\/example.html /redirected.html"
    ]
     
    // Add the middleware to the stack
    app.use(rewrite(rules));

    Keywords

    none

    Install

    npm i connect-url-rewrite

    DownloadsWeekly Downloads

    4

    Version

    0.1.0

    License

    MIT

    Last publish

    Collaborators

    • loopj