Website redirection to different url depending on your visit history

Hi Guys,

Issue: Two Url's (www.abc.com & www.abbc.com), 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.
AJolaAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
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 ChongBusiness Systems Analyst , ex-Senior Application EngineerCommented:
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.
0
Tomas Helgi JohannssonCommented:
Hi!

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.

https://httpd.apache.org/docs/2.4/rewrite/remapping.html
https://www.linode.com/docs/websites/apache-tips-and-tricks/redirect-urls-with-the-apache-web-server

Regards,
    Tomas Helgi
0

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.