WordPress.org

Ready to get started?Download WordPress

Forums

How to remove the author name from the urls /author/authorname (7 posts)

  1. su1
    Member
    Posted 2 years ago #

    Hello,

    I've noticed that some of the pages of my blog indexed by Google comport my user name in the url, like http://mysite.com/author/myauthorname/page/2

    Is there a way to change this url, to delete these pages from my blog or to prevent Google from indexing them?

    Thanks.

  2. esmi
    Forum Moderator
    Posted 2 years ago #

    If Google has found these pages, then you must be linking to them somewhere on your site. Try removing those links.

  3. su1
    Member
    Posted 2 years ago #

    OK thanks and is it possible to tell WordPress not to create these pages at all? Basically those pages are all the posts I've posted displayed ten by ten (like what we usually have on the homepage), but I don't really need that.

  4. esmi
    Forum Moderator
    Posted 2 years ago #

    is it possible to tell WordPress not to create these pages at all?

    No - they are automatically generated on demand. But if you don't publish links for them, people can't access them.

  5. su1
    Member
    Posted 2 years ago #

    "Automatically generated on demand" by WordPress or by my theme? On another blog of mine using the Twenty Eleven theme, if I try to access the url http://mysite.com/author/myauthorname/page/2 I get the Page not found error.

    So is it just my theme that generates such pages?

    I'm just asking because I have a lot of posts and it could be difficult to find the ones that are linking to these pages. I'd rather delete these urls right away even if I get broken links after that.

  6. esmi
    Forum Moderator
    Posted 2 years ago #

    The pages will be generated by WordPress but the link may be generated by your theme. Do any of its template files use <?php the_author_posts_link(); ?>?

  7. su1
    Member
    Posted 2 years ago #

    I'm going to check that and I'll report back but I need a little bit of time.

    Thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.