Change WordPress Default Base Slug with Rewrite Rule

You can change wordpress author, search, commens and pagination base with rewrite. If you want to print in your own language you can output the following code in your own language by adding it to your function.php file. The following code will allow you to make author, search, comments, and pagination slugs in your language. The example code is for turkish language


WARNING: This code will not work without flush_rules


function change_default_base() {
    global $wp_rewrite;
    $wp_rewrite->author_base        = 'yazar';
    $wp_rewrite->search_base        = 'arama';
    $wp_rewrite->comments_base      = 'yorumlar';
    $wp_rewrite->pagination_base    = 'sayfa';
add_action('init', 'change_default_base');

1 Comment

  • Aly Chiman

    Hello there,

    My name is Aly and I would like to know if you would have any interest to have your website here at promoted as a resource on our blog ?

    We are in the midst of updating our broken link resources to include current and up to date resources for our readers. Our resource links are manually approved allowing us to mark a link as a do-follow link as well

    If you may be interested please in being included as a resource on our blog, please let me know.



Leave a Reply

Your email address will not be published. Required fields are marked *