Skip to content

WordPress Archives Redirecting to Home Page

by John Nemec on July 1st, 2010
WordPress Forums Screenshot

For months now my Archives (located on the right) have been redirecting to the Home Page of JohnNemec.com and I never could figure out why. It really wasn’t a big deal to me at the time, but just today I wanted to look at some old article I’d written and couldn’t get to them easily. With the fire lit I decided to solve this problem once and for all. So I went to Google.

After a quick search of “wordpress archive redirect to home” I found the WordPress.org Forums. As soon as I clicked the link and truly realized where I was I thought to myself, ‘duh’. Keeping my fingers crossed while skimming the forum to find my answer I finally found what I was looking for.

The culprit all along was the Robots Meta plugin by Yoast. I didn’t figure out the answer, I only found the solution and now I’m passing it off to you. Use it in good health.

From WordPress.org

For those who may have this issue also:

If you try to do searches using your default search box and doing so redirects to your homepage with no search being performed

or

When you click on an archive link and it redirects to your homepage without showing the archive content

If you happen to have the Robots Meta plugin by Yoast, this is the culprit causing the problem.

Here is the section of the Robots Meta plugin causing the problem: Uncheck the three BOLD settings to fix this.

Disable the author archives

If you’re running a one author blog, the author archive will always look exactly the same as your homepage. And even though you may not link to it, others might, to do you harm. Disabling them here will make sure any link to those archives will be 301 redirected to the blog homepage.

Disable the date-based archives

For the date based archives, the same applies: they probably look a lot like your homepage, and could thus be seen as duplicate content.

Redirect search results pages when referrer is external

Redirect people coming to a search page on your site from elsewhere to your homepage, prevents people from linking to search results on your site.

NOTE: I have no idea why these three settings would cause the two problems I mentioned. The description for the settings mentions it’s to block people outside of your website from linking to these search pages – I understand that part but why it actually prevents you from doing searches within the site itself or clicking on archive links from within the site itself I have no clue.

But anyhow I disabled these three settings and I’m back to normal with links and searches working.

Well, there you have it. My answer. Now you can use my fully functional Archive.

Popularity: 1% [?]


From → Web Developer

11 Comments
  1. Vaibhav permalink

    I had the same problem and I followed the above instructions. But, the archive links are still being redirected to home page. When I De-activate the plugin it works fine. Am I missing something??

    • So, by de-activating the Robots Meta plugin by Yoast you’ve determined that it really is the problem. That narrows it down. Without being able to see anything on the backend, my only advise is to reactivate it and make sure your archives break again. If they do, and they should, try the steps over. Double check every click and check box option the Robots Meta plugin by Yoast gives you.

      Let me know if you find the solution. I’m sure we are not the only ones to ever have a problem with our WordPress Archives redirecting to the index.

      • Excellent Answer. I was using this plugin and after it was giving me problems. My author page & archive pages was redirecting to home page. I have disabled that plugin and now it is working fine. Thanks once again. Good work. :)

    • Cold Salsero permalink

      I also followed the advice from the forum, but my archives still kept redirecting. When I deactivated my Robots Meta plugin, I still got the same problem, so maybe something else is causing this in my case?

      • Cold Salsero permalink

        I take it back, this time, instead of just disabling the archive redirect, I disabled the search redirect too, and now I have my archives back ;)

        The plugin obviously needs work in this area, or at least better instructions :p

  2. Heidi permalink

    Disabling the Meta Robots completely worked for me as well in fixing my archives. I first unchecked the above items but my archives were still redirecting to my home page. Disabling the plugin made them work again. I wonder why that is?

  3. Thanks for the tips. Same problem with WP SEO plugin from Yaost.

  4. Disabling the Robots Meta Plugin worked for me.

  5. It’s happening the opposit: Front Page is redirect to Archive Page that i create this afternoon.

    I try the suggested tips and to disable the mentioned plugin in but nothing happened.

    I cleared the archive page and i add its URL to Google Webmaster tools to be cleared also.

    It was happened some monthes ago that from my wordpress page menù choosing a page to edit another one was displayed.

    After cleared the database tables bug disappeared.

    Now i asked to my hosting service to do that for me.

    I already add following row to WP_config.sys

    define(‘WP_SITEURL’, ‘http://mydomain.it‘);

    define(‘WP_HOME’, ‘http://mydomain.it‘);

    as suggested in some wordpress.org Forum

    but nothing happened

    Some other suggestion?

    Regards
    Carlo

  6. Disabling all plugin my wordpress works properly !

    I’ m going on to check, may it depends from last plugin i added?

  7. Redirection plug in cause the problem!

Leave a Reply

Note: XHTML is allowed. Your email address will never be published.

Subscribe to this comment feed via RSS

*