sedteam / Seditio

Seditio CMS Source

Home Page:https://seditio.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Forum seo url

SeditioCMS opened this issue · comments

As an example, I made it for the post on the forum. and the canonical url you added extra is unnecessary.
sed_translit_seourl we are using

<link rel="canonical" href="http://localhost/q/1?aradigim-sonuclarda-spam-siteden-baska-site-cikmiyor" />

Change
$urlpaths[sed_url("forums", "m=posts&q=".$q, "?".sed_translit_seourl($ft_title)."")] = $ft_title;

/*  Forums translation */

$sed_urltrans['forums'] = array(
    /**/
    array( 
          'params' => 'm=topics&s=*', 
          'rewrite' => 't/{s}'
    ),
    /**/
    array( 
          'params' => 'm=posts&q=*', 
          'rewrite' => 'q/{q}'
    ),
    /**/
    array( 
          'params' => 'm=posts&p=*', 
          'rewrite' => 'p/{p}'
    ),
    /**/
    array( 
          'params' => 'c=*', 
          'rewrite' => 'forums/{c}'
    ),
    /**/
    array( 
          'params' => '', 
          'rewrite' => 'forums'
    )
);  
 /*  Forums rewriting */
    array(
         'cond' => '#^/t/([0-9]+)(/?)$#',
         'rule' => 'system/core/forums/forums.php?m=topics&s=$1'
    ), 
    array(
         'cond' => '#^/q/([0-9]+)(/?)$#',
         'rule' => 'system/core/forums/forums.php?m=posts&q=$1'
    ),
    array(
         'cond' => '#^/p/([0-9]+)(/?)$#',
         'rule' => 'system/core/forums/forums.php?m=posts&p=$1'
    ),
    array(
         'cond' => '#^/forums/([a-zA-Z0-9]+)(/?)$#',
         'rule' => 'system/core/forums/forums.php?c=$1'
    ),
    array(
         'cond' => '#^/forums(/?)$#',
         'rule' => 'system/core/forums/forums.php'
    ), 

URL out: http://localhost/q/1?aradigim-sonuclarda-spam-siteden-baska-site-cikmiyor
Isn't this better?