Wordpress Redirecting to the homepage

Discussion in 'Integration' started by rdpioneer, Jun 11, 2010.

  1. rdpioneer

    rdpioneer New Member

    Joined:
    Apr 1, 2010
    Messages:
    27
    Hello,
    if someone is on a post on my membership site, and they login to see the full content, they are redirected to my homepage, wich is annoying.
    but i want them to stay in the post, not to return to my homepage
    what should i do?
    thank you.
  2. robw

    robw CGI-Central Partner

    Joined:
    Dec 18, 2007
    Messages:
    287
    Hi,

    You should change your login option link so that it uses the amember_redirect_url option e.g.:

    Code:
    http://www.yourdomain.com/amember/login.php?amember_redirect_url=[COLOR="red"]/path/to/the/post[/COLOR]
    To get /path/to/the/post dynamically in wordpress, you can use something like:

    Code:
    http://www.yourdomain.com/amember/login.php?amember_redirect_url=<?php echo $_SERVER['REQUEST_URI']; ?>
  3. donielle

    donielle New Member

    Joined:
    Apr 9, 2010
    Messages:
    9
    I'm having the same issue. Where would I replace this code at?
  4. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
    How are you protecting the content- which login are you using?

    David
  5. rdpioneer

    rdpioneer New Member

    Joined:
    Apr 1, 2010
    Messages:
    27
    I don't know where I should replace the code too.
  6. rdpioneer

    rdpioneer New Member

    Joined:
    Apr 1, 2010
    Messages:
    27
    I'm using hidepost how should i put the code?
    thank you
  7. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    Please contact us in helpdesk provide access info and explain on exact example what you need to do.

Share This Page