Support » Fixing WordPress » How to change pagination/search/author permalinks?

  • Hi,

    I’m trying to modify the following permalinks that WordPress doesn’t allow to modify on the Permalinks menu:

    • /author/author-name/
    • /page/2/
    • /?s=search-term

    Until now I was using the plugin WP Htaccess Control, but now has stopped working the pagination URLs.

    There’s some plugin or easy functions.php code to implement this 3 solutions? I don’t want a plugin for each item, and I cannot find any solution to this in Google 🙁


Viewing 3 replies - 1 through 3 (of 3 total)
  • Perhaps give it a go with this plugin?

    /author/author-name/ is from a theme or plugin. You will need to review which.

    for /page/2/, what do prefer the rewrite to be? Any archive type page with more posts than set per page will lead to that type of URL such as tag/page/2/, category/page/2/, taxonomy/page/2/, CPT/page/2/.

    /?s=search-term is a query var parameter and is best left as is.

    The latter 2 of these would be based on the permalinks settings you set.

    Again, what do you want them to be?

    And, the referenced plugin requires you set a custom permalink per page or post. I am not convinced that is what you asked.

    function change_author_permalinks() {
        global $wp_rewrite;
        $wp_rewrite->author_base = 'rider';
    add_action( 'init', 'change_author_permalinks' );

    this works but is not optimal because rewrites get flushed on each time.
    I’m using this and don’t have performace issues yet, but I will change this so it only gets loaded on theme activation (shouldn’t be that hard).

    • This reply was modified 2 years, 7 months ago by  Beee.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to change pagination/search/author permalinks?’ is closed to new replies.