Switch front-end's of a website after X amount of hits

Posted by Derek Adair on Stack Overflow See other posts from Stack Overflow or by Derek Adair
Published on 2010-04-23T20:36:20Z Indexed on 2010/04/23 21:43 UTC
Read the original article Hit count: 199

Filed under:
|
|
|

Sorry about the title - not sure what to call this one.

A client of mine would like to redirect users to different front-ends of his eCommerce site based on a hit-counter (possibly a timer?).

important:

-The content is moderately different in the two sites, enough to consider them two different websites. Knowing this client he will likely add more drastic content changes and other front-ends. So for this question consider the content to be

-This site has a rather large back-end. With affiliate networking, multiple payment gateways, order-tracking, and several other features in the works. It is essential that these two front-ends have identical back-end functionality


I know that if it was just a simple CSS swap this would be as simple as an if statement that ran off some kind of counter stored in a DB... but the different HTML markup is throwing me for a loop.


Q: How can I serve two different front-ends (HTML/CSS) based on a hit counter?

Also, I don't have any clue what to tag this one as...

© Stack Overflow or respective owner

Related posts about dynamically

Related posts about switch