Website redirection to different url depending on your visit history

Hi Guys,

Issue: Two Url's ( &, we have created a new website and we would like to direct the traffic for older website to new website but if you come back to visit the older site again with in 24hrs it should take you to the older website until we fully launch the new website. is it possible?

Any help is much appreciated.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ryan ChongSoftware Team LeadCommented:
probably 2 ways to go.

1st way is using browser's cookies.
2nd way is to store the info at server end (old site) and then do the redirection to new site when necessary.
Tomas Helgi JohannssonDatabase Administrator / Software EngineerCommented:

If you are using Apache Webserver you can do this using redirect command on the old server.
For your virtualhost you put the redirect keyword (with either temporary or permanent params) pointing to the new location.
You would use temporary redirect until you fully launch your new website then you change it to permanent.

    Tomas Helgi

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development

From novice to tech pro — start learning today.