WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Broken posts pages causing 404's (6 posts)

  1. oldmankit
    Member
    Posted 1 year ago #

    I posted about this several months ago but got no suggestions of how to fix it. I said I would see if anything changed in time and check in. Here is the check-in.

    My domain is oldmankit.com (set as "front page" in reading settings)
    My posts page is oldmankit.com/writings (set as "posts page in reading settings)

    The following links are are fine:
    http://oldmankit.com/writings/page/1/
    http://oldmankit.com/writings/page/2/
    http://oldmankit.com/writings/page/3/
    etc.

    However wordpress is generating the following pages, which are all basically broken:
    http://oldmankit.com/page/1/
    http://oldmankit.com/page/2/
    http://oldmankit.com/page/3/
    etc.

    Please, just click on those links and see that it is a broken page. It looks like the "welcome page" but is a broken version of it.

    These phantom pages are causing 404 errors in google webmaster tools.

    Why are these pages being generated?

  2. oldmankit
    Member
    Posted 1 year ago #

    I forgot to mention that I am using a custom child theme of Thematic.

  3. Gene
    Member
    Posted 1 year ago #

    Have you have tried flushing permalinks by changing the permalink structure in the wp-admin and changing them pack to your original preference?

    Other than that I can see that you have used relative urls in the insterted table on the broken page. It would be better to use absolute urls.

    WordPress provides plenty of help in that regard get_stylesheet_directory_uri and get_template_directory_uri for example.

    It could be that your use of relative urls is leading Google's spiders down a broken path somewhere on your site.

  4. oldmankit
    Member
    Posted 1 year ago #

    Gene,

    I'm really grateful for your help on this.

    I tried changing permalinks to a new type by the phantom pages remain operational. Changing back to the current permalink type didn't help either.

    You were right about the relative urls making the welcome page broken when it appears as page/1 etc.. So I have fixed that. It now looks right.

    This may well fix the google crawling errors.

    I still don't know why these pages exist... is it normal? They are not linked to from anywhere, however, so I suppose they won't actually do any damage. I'm just a perfectionist and would rather they didn't exist at all.

  5. Gene
    Member
    Posted 1 year ago #

    I tested it and am getting the same results. I think that this is a normal behavior of WordPress.

    You have created a page and assigned it as the front page in the reading settings. WordPress is treating paginated queries to the site's root url as if they were the paginated results of that WP Page. In response to an invalid paginated request WordPress is sending you to the page itself instead of to a 404 error page.

    Hope that helps demystify the odd user experience. It's hard to say why the page views were showing up on your analytics. Oh well.

    On a side note, your child theme could use some love. it looks like your loading all the super fish dropdown nav scripts for no reason. What child theme is your theme a derivative of? Sophia? Anyway if you'd like help removing those scripts serch the community forums over here Thematictheme.com i'm pretty sure that the removal of those scripts addressed over there before.

  6. oldmankit
    Member
    Posted 1 year ago #

    Hello again Gene,

    I'm really grateful that you have taken the time to look into this.

    If you are getting the same results, then I am satisfied.

    I'm also a bit blown away that you looked into my child theme. It's actually a theme I made myself, based on thematic. I was aware that it was loading the superfish scripts, but didn't think that would make much difference. However you're right, it would be neater not to load them if I'm not using them. I'll deal with that soon.

    Thank you again!
    Kit

Topic Closed

This topic has been closed to new replies.

About this Topic