Dotclear

Ticket #698 (new enhancement)

Opened 12 years ago

Last modified 12 years ago

dc1redirects for pages

Reported by: greut Owned by:
Priority: normal Component: plugin:dc1redirect
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

comment:1 Changed 12 years ago by Moe

  • Owner Moe deleted

Not my plugin.

Note: See TracTickets for help on using tickets.

Sites map