This plugin is for the website using Lokka deployed on Heroku. The plugin can create any redirect rule. For example, this is useful for migrating from WordPress to Lokka, in case that you want to redirect URLs of WP style to those of Lokka style.
$ cd LOKKA_ROOT/public/plugin
$ git clone git@github.com:champierre/lokka-redirect.git
$ rm -rf lokka-redirect/.git
If you want to redirect
http://example.com/archives/date/2007/11/
to
create the following rule from "rewrite" plugin admin page.
Pattern | Substitution |
---|---|
^/archives/date/(\d{4})/(\d{2})/*$ | /\1/\2/ |
Pattern | Substitution |
---|---|
^/archives/(\d+)/*$ | /\1 |
^/archives/date/(\d{4})/(\d{2})/*$ | /\1/\2/ |
^/archives/date/(\d{4})/*$ | /\1/ |