Redirecting while maintaining the entry in browser history

Discussion in 'Site & Server Administration' started by Will Morgan, Jun 23, 2007.

  1. #1
    Hey guys,
    I'm a little stumped.

    I'm trying to redirect from one page to another, but the only problem is that the browser doesn't remember the page it was redirected from. My current code is just a normal PHP header redirect that doesn't tell the browser to remember the history.

    Can any of you help me?
     
    Will Morgan, Jun 23, 2007 IP
  2. aidantrent

    aidantrent Peon

    Messages:
    19
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    If you're using HTTP 3XX redirects, the browser will view the entire transaction as a single pageview. If you want it to sit in the browser's history, I think you need to use a meta refresh.

    If I may ask, why would you want the redirect page available in the browser history at all?
     
    aidantrent, Jun 23, 2007 IP
  3. Will Morgan

    Will Morgan Peon

    Messages:
    70
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    It was for a client - I told him it's actually not possible.
     
    Will Morgan, Jul 2, 2007 IP
  4. agnivo007

    agnivo007 Peon

    Messages:
    4,290
    Likes Received:
    289
    Best Answers:
    0
    Trophy Points:
    0
    #4
    It's done through framed cloaking I think.
     
    agnivo007, Jul 2, 2007 IP