Help with php redirect so root url appears in address bar

Discussion in 'PHP' started by mobilemaniac, Nov 8, 2009.

  1. #1
    I am trying to pass a variable to a script via the querystring and that variable will identify an article. I will have several articles in a folder. I want that article to appear but I want the root domain to appear in the address bar.

    So the url might look llike domain.com/redirect?id=34 and when this was clicked it would run a script that would retrieve article 34 from the redirect folder and display it as if it was on the domain root. So a visitor would see article 34 and domain.com would be in the address bar.

    Does anyone have any code examples to acheive something like this that I can play around with.

    I have had a script that does this in the past, but I lost it.

    Thanks
     
    mobilemaniac, Nov 8, 2009 IP
  2. Sky AK47

    Sky AK47 Member

    Messages:
    298
    Likes Received:
    8
    Best Answers:
    1
    Trophy Points:
    45
    #2
    Sky AK47, Nov 8, 2009 IP