ajgl / redirector-spress-plugin
Seamlessly specify multiple redirections URLs for your pages and posts
Installs: 65
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 1
Open Issues: 0
Type:spress-plugin
Requires
- spress/spress-installer: 2.0.*
This package is auto-updated.
Last update: 2024-11-10 21:04:26 UTC
README
The AjglRedirectorSpressPlugin component allows you to seamlessly specify multiple redirections URLs for your pages and posts with Spress
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.