WordPress.org

Ready to get started?Download WordPress

Forums

returning visitors forced to homepage (2 posts)

  1. mdevaney
    Member
    Posted 2 years ago #

    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

  2. bcworkz
    Member
    Posted 2 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic