ajgl/redirector-spress-plugin

Seamlessly specify multiple redirections URLs for your pages and posts

0.1.0 2016-03-31 17:10 UTC

This package is auto-updated.

Last update: 2020-07-10 12:01:29 UTC


README

The AjglRedirectorSpressPlugin component allows you to seamlessly specify multiple redirections URLs for your pages and posts with Spress

Latest Stable Version Latest Unstable Version Total Downloads Montly Downloads Daily Downloads License

Installation

To install the latest stable version of this component, open a console and execute the following command:

$ composer require ajgl/redirector-spress-plugin

Usage

Add a redirect_from attribute to an item with the old URL path that you want to redirect to the current item URL.

---
layout: "post"
title: "Welcome to Spress"
redirect_from: /old/url.html
---

Clean URLs

If the redirect_from value ends with a slash /, it will generate a directory with an index.html file inside.

---
layout: "post"
title: "Welcome to Spress"
redirect_from: /old/url/
---

This will generate rederize the redirect page in /old/url/index.html.

Multiple redirections

You can add multiple redirect_from values if you want to generate multiple redirections..

---
layout: "post"
title: "Welcome to Spress"
redirect_from:
  - /old/url/
  - /other/old/url/
---

License

This component is under the MIT license. See the complete license in the LICENSE file.

Reporting an issue or a feature request

Issues and feature requests are tracked in the Github issue tracker.

Author Information

Developed with ♥ by Antonio J. García Lagar.

If you find this component useful, please add a ★ in the GitHub repository page and/or the Packagist package page.