I have a sample code:
function change_author_permalinks() {
global $wp_rewrite;
$wp_rewrite->author_base = 'u';
$wp_rewrite->author_structure = "/" . $wp_rewrite->author_base . '/%author%';
add_rewrite_rule('u/([^/]+)/?$', 'index.php?author_name=$matches[1]', 'top');
}
add_action('init','change_author_permalinks');
but my current front set on my blog is:
t%post%
(ex: www.domain.com/tauthor/username
)
I want change to:
www.domain.com/u/username
But when run code, result is page not found ? How to fix it ?
$this->front
has to do with this? As you use it in the title, but not in the content of the Question...