htaccess that redirects depending of the day and hours
$30-250 USD
Selesai
Disiarkan hampir 12 tahun yang lalu
$30-250 USD
Dibayar semasa penghantaran
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 [login to view URL] if the user enters to [login to view URL] and it is not time to enter to it, he is redirect to [login to view URL] )
I think that the easier way to do this is to have 2 .htaccess on the root folder (Ex. [login to view URL] ) and one in the start folder (Ex. [login to view URL]), so the .htaccess file in the [login to view URL] folder sends the user to [login to view URL] 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 10.10am-11.47am
Tuesday 8pm-10pm
Wednesday 10pm-10.30pm
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!)