Wordpress Author URLs redirected to Home Page
Asked Answered
D

5

7

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

Derose answered 25/8, 2011 at 7:53 Comment(0)
G
6

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.

Gramnegative answered 11/10, 2011 at 18:4 Comment(0)
V
14

Go into SEO/Titles & Metas then click 'Other' in the top tabs.

Untick 'Disable the author archives' and your problem will be solved.

Vesting answered 19/8, 2014 at 7:51 Comment(1)
It sucks that it does that. I had spent 2 days on this with no idea why the redirects were happening. Glad it is resolved. Thanks!Kish
G
6

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.

Gramnegative answered 11/10, 2011 at 18:4 Comment(0)
H
6

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.

Hanghangar answered 7/3, 2018 at 10:29 Comment(0)
P
4

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.

Primacy answered 21/4, 2017 at 18:58 Comment(1)
This is indeed the actual issue that will resolve it. I suggest not to touch the code like the option above. On-update you'll need to do it again, and you probably will have forgotten it by then.Wishful
N
0

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.

Nudi answered 3/9, 2012 at 17:37 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.