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
You could use sessions as you don't want it to appear in the URL. (Or even cookies?) http://php.net/manual/en/ref.session.php