WordPress Author URLs redirected to Home Page

I have tried to set up an author page in wordpress. But all the author pages are redirected to the home page. I google it and they suggested to disable plugins and then check the author pages. I tried it and found that Yoast wordpress SEO plugin causes this problem. But i really want to use this plugin for SEO. Please help how to handle this. Thanks

Related posts

Leave a Reply

5 comments

  1. If Yoast’s plugin seems to be causing the problem — don’t bother touching the code.

    Instead, just install any of the other SEO plugins. They’re just as good.

  2. To resolve it Do This in admin section. plugin Version 7.0.1

    SEO -> Search Appearance -> Archives -> Author archives settings -> Author archives -> marked it as Enabled.

  3. I found out how Yoast SEO plugin determines whether to set the redirect or not.
    The redirect is set if you have answered in the configuration manager of Yoast SEO that the site does not have multiple authors (SEO-> Dashboard-> General -> Configuration wizard). The reason for that is to avoid duplicated from SEO perspective content, because your author and your blog page will have the same content, if the site has only one author.

  4. You need to edit the class frontend in folder frontend and delete this line

    ( isset( $options['disable-author'] ) && $options['disable-author'] && $wp_query->is_author ) ||
    

    Then the author pages will not redirect.