Peruttu

htaccess that redirects depending of the day and hour

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: #1703976

5 freelanceria on tarjonnut keskimäärin 250 $ tähän työhön

LuigiWidmore

Hi sir , My name is Luigi Widmore and i'm an expert web developer. My areas are HTML/CSS PHP/MYSQL Design/Photoshop. I can deliver this project in 1 days or less. Please check PM for details , you may be impresse Lisää

250 $ USD 999 päivässä
(98 arvostelua)
6.3
gvuyk

Hello, please check PM

250 $ USD 1 päivässä
(25 arvostelua)
5.0
serpentscode

Hello, I can do it right now, check your pmb.

250 $ USD 0 päivässä
(33 arvostelua)
4.6
egibby

I can set up your site to use htaccess to redirect based on the time of the day. Check out my profile for more information about my experience.

250 $ USD 1 päivässä
(8 arvostelua)
3.9
gigi4turbo

Check PMB. Thank you.

250 $ USD 1 päivässä
(14 arvostelua)
4.1
Smash005

Hi, I'm kinda new here and I'm starting with small projects. I'm pretty sure I understand your explanations and it seems simple. I'm very good in HTML, JavaScript and PHP so I might be the guy for you. Send me a ma Lisää

250 $ USD 3 päivässä
(0 arvostelua)
0.0