I changed my WordPress blog URL from:
and then after many days,
But now seen that, they are taking the author archive link to a dead end (404). Where the default author archive link is:
/?author=1, with any of these permalinks, the author archive's link becomes
/author/1. But the URL is taking me to a 404. I've tested in my local dev environment too, can't get what's the exact URL which can give me the author archive.
The author archive link, that's in my theme is:
<a href="<?php echo get_author_posts_url( false, $authordata->ID, $authordata->user_nicename ); ?>"> <?php the_author(); ?> </a>
Is that a bug of WordPress or I'm doing something wrong?