Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My website is basically a gallery of pictures that I display one at the time (as seperate posts). I have no need for a landing page and so I redirect all users who visit the homepage to a random post:

if (have_posts()) {
    while (have_posts()) {
        wp_redirect(get_permalink(), 302);


My homepage is still/and should be the most visited page and so I am wondering if the redirection will have any negative impact on SEO.

share|improve this question
up vote 3 down vote accepted

By applying redirect from your home page to a random post, you can confuse visitors. For example and especially when visitors click on a link like www.example.com (your home page URL), they expect see your home page, not a post.

Moreover, you can also confuse Googlebot and other search engines bots (and thus SEO) if the home page is always redirected to a different post. By the way, maybe your home page is not indexed by these search engines whereas it's the most important page.

In your case, a very good option would be to keep your home page without any redirect and display a random image each day (with a link to its post). That way:

  • you don't confuse visitors
  • you don't confuse search engines bots (and thus SEO)
  • you often change content (and image) of your home page (good for visitors and SEO because of fresh content)

For your information, Wikipedia does this with its home page (new articles and associated pictures each day). And it works well for visitors and SEO.

share|improve this answer
You are right, I have decided to recode the homepage. – Tony Fire May 17 '14 at 17:20

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.