WordPress.org

Support

Support » How-To and Troubleshooting » returning visitors forced to homepage

returning visitors forced to homepage

  • I’m looking to continue my click through with ever user. Right now it only takes the user 3 clicks to get where there going, then they bookmark that link cutting out two click.

    I was thinking maybe sessions & cookies, or a complicated redirect script that would recongnize where or not they came from the domain or not?!?! (i just confused my self)

    (if code was this easy..)

    IF user CAME_FROM domain.com THEN OK
    ELSE
    REDIRECT user TO domain.com

    so they go to domain.com/page/they/want and be forced to domain.com

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    @bcworkz

    So you want to force all visitors to your home page no matter where they deep linked into your site? A simple .htaccess rewrite will do that, on the condition the referer is not your domain.

    The problem would be if a user’s client or proxy is not sending referer headers, they cannot get past your homepage. Same goes for search spiders.

Viewing 1 replies (of 1 total)
  • The topic ‘returning visitors forced to homepage’ is closed to new replies.
Skip to toolbar