htaccess that redirects depending of the day and hours

What I need is a script that depending of the day and the hour that it is (using server time not user time) redirects the user to one page or another.

For example:

If it is Wednesday 5pm-8pm redirects to --->/wait/ (folder start)

If it is Friday 9 am - 11 am redirects to ---> /start/ (folder start)

I also need that if the user enters directly to the start folder and it is not time to enter that folder, he is send back to the wait folder. (I mean if my domain is [url removed, login to view] if the user enters to [url removed, login to view] and it is not time to enter to it, he is redirect to [url removed, login to view] )

I think that the easier way to do this is to have 2 .htaccess on the root folder (Ex. [url removed, login to view] ) and one in the start folder (Ex. [url removed, login to view]), so the .htaccess file in the [url removed, login to view] folder sends the user to [url removed, login to view] if is not time to be on it.

I don´t need a backend or page to configurate the days/times of redirection, I can do it just editing a file.

Please enter this code in a PM to know that you read this explanation: joke3

Example of how the configuration page have to look like:

(is just and example, you can do it different if you need, the thing is that you see that the hour have to include minutes, pm and am, and that the same day can have more than:

When redirects to: /start/

Monday 8.37pm-12pm

Tuesday [url removed, login to view]

Tuesday 8pm-10pm

Wednesday [url removed, login to view]

Thursday 15pm-18pm

Friday 15pm-18pm

Saturday 15pm-18pm

Sunday 15pm-18pm

This is an easy proyect if you know what to do, so I can pay max. $50 for it (of course, the less the best!)

Taidot: AJAX, HTML, Javascript, PHP, tietojärjestelmäarkkitehtuuri

Näytä lisää: the hour com, and am, root folder, redirection script, htaccess, course for less, depending, php redirects, htaccess file read, different depending, php htaccess, http redirect code, domain server time, htaccess read, server redirects, htaccess redirect page php, php redirect url www, redirects, javascript redirection, redirection javascript, sunday times, php domain redirect script, redirects php, redirects php page, 8pm

Tietoa työnantajasta:
( 10 arvostelua ) Montevideo, Uruguay

Projektin tunnus: #1704005

Myönnetty käyttäjälle:


as we discused

$37 USD 1 päivässä
(14 Arvostelua)