{"_id":"apostrophe-magic-redirects","_rev":"65-31f4e4db62d2154cc90324f28608235d","name":"apostrophe-magic-redirects","dist-tags":{"latest":"0.5.5"},"versions":{"0.5.0":{"name":"apostrophe-magic-redirects","version":"0.5.0","keywords":["apostrophe","redirects","cms"],"author":{"name":"P'unk Avenue LLC"},"license":"MIT","_id":"apostrophe-magic-redirects@0.5.0","maintainers":[{"name":"boutell","email":"boutell@boutell.com"}],"homepage":"https://github.com/punkave/apostrophe-magic-redirects","bugs":{"url":"https://github.com/punkave/apostrophe-magic-redirects/issues"},"dist":{"shasum":"1039703df6a2e068f548b96b822790c66293e4b2","tarball":"https://registry.npmjs.org/apostrophe-magic-redirects/-/apostrophe-magic-redirects-0.5.0.tgz","integrity":"sha512-F+/llZTS+BeQsnrmEXtpQz7I/S72Wa+tO+ErjHWfTsXtQYa8gn8CRy1spnMU2+5H22vIYtZjqQV/x0sYCh8W5Q==","signatures":[{"sig":"MEYCIQDTwOt3xdlpk9hKHtayASwAY/k8eGCr0FbXl4fhl/RBxwIhAMx51fdjSlzl5gwRureZRAtVT5zasYPWwsnN2c5FF9JK","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"1039703df6a2e068f548b96b822790c66293e4b2","gitHead":"43855aee4808f4197bf143b2cc8cb01e11417d52","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"boutell","email":"boutell@boutell.com"},"repository":{"url":"https://github.com/punkave/apostrophe-magic-redirects.git","type":"git"},"_npmVersion":"1.4.24","description":"Automagically redirect users to the best page available as an alternative to a 404 Not Found error.","directories":{},"dependencies":{"qs":"^2.3.2","async":"^0.9.0"}},"0.5.1":{"name":"apostrophe-magic-redirects","version":"0.5.1","keywords":["apostrophe","redirects","cms"],"author":{"name":"P'unk Avenue LLC"},"license":"MIT","_id":"apostrophe-magic-redirects@0.5.1","maintainers":[{"name":"boutell","email":"boutell@boutell.com"}],"homepage":"https://github.com/punkave/apostrophe-magic-redirects","bugs":{"url":"https://github.com/punkave/apostrophe-magic-redirects/issues"},"dist":{"shasum":"3e258dbdbc95caaa1efb6b79ed51a0092295059f","tarball":"https://registry.npmjs.org/apostrophe-magic-redirects/-/apostrophe-magic-redirects-0.5.1.tgz","integrity":"sha512-TWSPva4m7lp0qzxiaZZGa4gMJk43jn0xHMnZLpYoGVQ3kh/Jo4a7mNc7LX08aRl6XGc2Dr9cHKhANwIIdYioLQ==","signatures":[{"sig":"MEUCIDDChzXFVl3T2bp3thgcYUoRZOxpEvs+0dgRLTL3sEXpAiEAkRyU2KxCbvfoAPswdYgRPp8+bTF1++KasJrWbqCi1tg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"3e258dbdbc95caaa1efb6b79ed51a0092295059f","gitHead":"af89b29ed2b29353cbb4edc8da72755f2dbee7b0","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"boutell","email":"boutell@boutell.com"},"repository":{"url":"https://github.com/punkave/apostrophe-magic-redirects.git","type":"git"},"_npmVersion":"1.4.24","description":"Automagically redirect users to the best page available as an alternative to a 404 Not Found error.","directories":{},"dependencies":{"qs":"^2.3.2","async":"^0.9.0"}},"0.5.2":{"name":"apostrophe-magic-redirects","version":"0.5.2","keywords":["apostrophe","redirects","cms"],"author":{"name":"P'unk Avenue LLC"},"license":"MIT","_id":"apostrophe-magic-redirects@0.5.2","maintainers":[{"name":"boutell","email":"boutell@boutell.com"}],"homepage":"https://github.com/punkave/apostrophe-magic-redirects","bugs":{"url":"https://github.com/punkave/apostrophe-magic-redirects/issues"},"dist":{"shasum":"2fcb2accf6c37691dc1f574ce304e25579262346","tarball":"https://registry.npmjs.org/apostrophe-magic-redirects/-/apostrophe-magic-redirects-0.5.2.tgz","integrity":"sha512-PaivXWGEV9CT2uy64UvoYVxDfXPsOuJI1YFOA3S0T4qPBysP3BrQFWPwna3PxwUGoV2nFYwlO4z41wyoOnGhUg==","signatures":[{"sig":"MEYCIQCidLQ8Bc1MKW0jpJ2ZrDld471hJphetPTR3lO8Tc+E5wIhAMcb209caBDkbgeaop0xywtCcmKDX4kV9LP2iiLsSP4i","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"2fcb2accf6c37691dc1f574ce304e25579262346","gitHead":"0ae82a6b1f17f3f25cfb365bea59a1edde414a56","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"boutell","email":"boutell@boutell.com"},"repository":{"url":"https://github.com/punkave/apostrophe-magic-redirects.git","type":"git"},"_npmVersion":"1.4.24","description":"Automagically redirect users to the best page available as an alternative to a 404 Not Found error.","directories":{},"dependencies":{"qs":"^2.3.2","async":"^0.9.0"}},"0.5.3":{"name":"apostrophe-magic-redirects","version":"0.5.3","keywords":["apostrophe","redirects","cms"],"author":{"name":"P'unk Avenue LLC"},"license":"MIT","_id":"apostrophe-magic-redirects@0.5.3","maintainers":[{"name":"boutell","email":"boutell@boutell.com"}],"homepage":"https://github.com/punkave/apostrophe-magic-redirects","bugs":{"url":"https://github.com/punkave/apostrophe-magic-redirects/issues"},"dist":{"shasum":"26917eaa276d03b009e57722daa8fe9b7cb74621","tarball":"https://registry.npmjs.org/apostrophe-magic-redirects/-/apostrophe-magic-redirects-0.5.3.tgz","integrity":"sha512-tpY7StkFSif5zNRHx5Xg9FuGv7JjAw7MtaXvgvM+BueiOuQFEZozfwM214zbHxFBdKqxfid88HryU4PSrnMDqA==","signatures":[{"sig":"MEQCICieV9zuf8OYX11v43Dt0l6gTVU41XImiTuMWkgeM3ULAiB9Cyfhf6i/javYTMuNG9ulHBckorgmOeZ4rZW9VzpxBA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"26917eaa276d03b009e57722daa8fe9b7cb74621","gitHead":"343e1854648a7d2b314d9285046d85f5e6271a1f","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"boutell","email":"boutell@boutell.com"},"repository":{"url":"https://github.com/punkave/apostrophe-magic-redirects.git","type":"git"},"_npmVersion":"2.6.1","description":"Automagically redirect users to the best page available as an alternative to a 404 Not Found error.","directories":{},"_nodeVersion":"0.12.7","dependencies":{"qs":"^2.3.2","async":"^0.9.0"}},"0.5.5":{"name":"apostrophe-magic-redirects","version":"0.5.5","keywords":["apostrophe","redirects","cms"],"author":{"name":"P'unk Avenue LLC"},"license":"MIT","_id":"apostrophe-magic-redirects@0.5.5","maintainers":[{"name":"alexgilbert","email":"alex@punkave.com"},{"name":"austinstarin","email":"austin@punkave.com"},{"name":"boutell","email":"boutell@boutell.com"},{"name":"colpanik","email":"kerry@punkave.com"},{"name":"grdunn","email":"grdunn@gmail.com"},{"name":"jimmyh","email":"jimmy@punkave.com"},{"name":"kyjoya","email":"kyleejacker@gmail.com"},{"name":"mcoppola","email":"coppola@punkave.com"},{"name":"stuartromanek","email":"stuart@punkave.com"}],"homepage":"https://github.com/punkave/apostrophe-magic-redirects#readme","bugs":{"url":"https://github.com/punkave/apostrophe-magic-redirects/issues"},"dist":{"shasum":"64d65167ce81464a73a0bde4ddbe5c5733cd26b7","tarball":"https://registry.npmjs.org/apostrophe-magic-redirects/-/apostrophe-magic-redirects-0.5.5.tgz","integrity":"sha512-/4mDoaavkRSmR7uRnZsmCVBHMzkTzDiMI7n2NwWbW2Lf+lYy+4o7AqrtOSJD1UXNkajSnld3c+XwzwowIhzG8w==","signatures":[{"sig":"MEMCH1uMrMvDg2g92dlPwwoRQoLirwlNHcdupCjSLt82f+gCIGT4qulCQXTKmSGpZJn1JEpWX1GvQVRNKLyhjSIImRW7","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"64d65167ce81464a73a0bde4ddbe5c5733cd26b7","gitHead":"4bcd518b7191d7c2127042a696ddd4a0ac4b6419","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"boutell","email":"boutell@boutell.com"},"repository":{"url":"git+https://github.com/punkave/apostrophe-magic-redirects.git","type":"git"},"_npmVersion":"3.6.0","description":"Automagically redirect users to the best page available as an alternative to a 404 Not Found error.","directories":{},"_nodeVersion":"0.10.41","dependencies":{"qs":"^2.3.2","async":"^0.9.0"},"_npmOperationalInternal":{"tmp":"tmp/apostrophe-magic-redirects-0.5.5.tgz_1475582775624_0.36813702899962664","host":"packages-12-west.internal.npmjs.com"}}},"time":{"created":"2014-11-11T22:14:07.343Z","modified":"2026-01-26T19:10:26.197Z","0.5.0":"2014-11-11T22:14:07.343Z","0.5.1":"2014-11-19T16:15:16.240Z","0.5.2":"2014-11-20T16:04:42.033Z","0.5.3":"2015-08-17T18:25:26.938Z","0.5.5":"2016-10-04T12:06:17.619Z"},"bugs":{"url":"https://github.com/punkave/apostrophe-magic-redirects/issues"},"author":{"name":"P'unk Avenue LLC"},"license":"MIT","homepage":"https://github.com/punkave/apostrophe-magic-redirects#readme","keywords":["apostrophe","redirects","cms"],"repository":{"url":"git+https://github.com/punkave/apostrophe-magic-redirects.git","type":"git"},"description":"Automagically redirect users to the best page available as an alternative to a 404 Not Found error.","maintainers":[{"email":"alex@apostrophecms.com","name":"alexgilbert"},{"email":"tom@apostrophecms.com","name":"boutell"},{"email":"stuart+npm@apostrophecms.com","name":"romanek"},{"email":"robert.means1969+apostrophecms@gmail.com","name":"bodonkey"},{"email":"kerry@punkave.com","name":"colpanik"},{"email":"stuart@punkave.com","name":"stuartromanek"},{"email":"kyleejacker@gmail.com","name":"kyjoya"},{"email":"austin.starin@gmail.com","name":"austinstarin"},{"email":"grdunn@gmail.com","name":"grdunn"},{"email":"bgantick@gmail.com","name":"bgantick"},{"email":"matthew.mance@gmail.com","name":"mtthwmnc"}],"readme":"## Currently not for 2.x\n\nThis module is not currently compatible with Apostrophe 2.x. It is intended for Apostrophe 0.5.x.\n\n# apostrophe-magic-redirects\n\nAs a last-ditch effort before issuing a 404, this module automatically issues redirects to the best match found via Apostrophe's [search module](http://github.com/punkave/apostrophe-search). Very helpful when recreating a large site with all-new content and new URLs.\n\nThis is very magical, and while it works well it will no doubt surprise you with the wrong result sometimes. If that happens a lot, use the [apostrophe-redirects module](https://github.com/punkave/apostrophe-redirects) to set up a better redirect manually.\n\n**Table of Contents**\n\n* [Installation](#installation)\n\n* [Configuration](#configuration)\n\n* [Usage](#usage)\n\n## Installation\n\nFirst make sure you have an [Apostrophe project](http://apostrophenow.org)!\n\nThen:\n\n    npm install --save apostrophe-magic-redirects\n\n## Configuration\n\nIn `app.js`, add the module to your configuration:\n\n    ... other modules ...\n    'apostrophe-magic-redirects': { }\n\nThat's it!\n\n### Too much magic?\n\nSometimes, this module can feel a little bit too magical. A redirect to a page of little relevance can be disconcerting. If you wish,  you can redirect only URLs that match a certain regular expression. For instance, this rule matches only URLs that look like dates:\n\n    ... other modules ...\n    'apostrophe-magic-redirects': {\n      filter: /\\d\\d\\d\\d\\-\\d\\d\\-\\d\\d/\n    }\n\nYou can also tell the module *not* to consider URLs that match a regular expression:\n\n    ... other modules ...\n    'apostrophe-magic-redirects': {\n      notFilter: /\\d\\d\\d\\d\\-\\d\\d\\-\\d\\d/\n    }\n\nYou may also use both options together.\n\n## Usage\n\nTry visiting various URLs that formerly 404'd on your site. For instance, if \"Biology\" has moved from \"/departments/biology\" to just \"/biology\", try visiting \"/departments/biology\". Odds are, you'll go to the right place.\n\nBe aware that Apostrophe already creates \"soft redirects\" every time you change the slug of a page. This module's usefulness is primarily for big migrations in which much of the content has been re-thought, re-written and moved around.\n\n\n## Changelog\n\n0.5.3: virtual page URLs are remapped properly to the search redirect route, so they don't 404.\n","readmeFilename":"README.md"}