Installation

Add this to your book.json plugin list:

{
"plugins": [ "bulk-redirect" ]
}

Usage

Configuration for this plugin is specified in book.json in the pluginsConfig object, with the key bulk-redirect. There are two important configuration options for this plugin (discussed below): basepath and redirectsFile.

basepath

basepath is a string containing a path against which the to URLs in the redirects list (present in redirectsFile) are resolved. It can be used to specify path to the directory in which the compiled book will be hosted, relative to the root of the domain. E.g., if the book is to be hosted at http://example.com/book/, then set the value of basepath to /book/. The trailing slash is necessary to ensure URLs resolve properly.

If the book is hosted at the root of the domain, e.g. http://example.com/, then you can leave this unspecified.