Ticket #1286 (closed enhancement: invalid)
dc1redirects for pages
| Reported by: | greut | Owned by: | team |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | module:plugins | Version: | 2.3 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
Hi, my blog was using the related plugin and the old pages where on the root, here is what I did to redirect those pages too.
$core->url->register('redir_page','','^([a-z]+[az0-9_-]*)/?$',array('dcUrlRedirect','redir_page'));
// …
public static function redir_page($args)
{
http::head(301);
header('Location: '.self::redir_url('pages',$args));
exit;
}
Change History
Note: See
TracTickets for help on using
tickets.

you can close it: http://lab.dotclear.org/ticket/698