That would be a pretty simple plugin to build (exactly how simple only depends on the exact features you want)
I’m certainly qualified to build it.
@brandonzunde
Well, the features should be as simple as:
if server time is between xx:xx and xx:xx redirect page to “URL1”
else redirect page to “URL2”
Yep, an easy thing to build out.
Moderator
Jan Dembowski
(@jdembowski)
Forum Moderator and Brute Squad
@brandonzundel Careful, it sounds like you’re soliciting for work and that will get you into trouble in these forums.
Care to share the code here? In Apache2 you’d do it easily via .htaccess
like so above the WordPress section.
RewriteEngine On
RewriteBase /
RewriteCond %{TIME_HOUR}%{TIME_MIN} >1200
RewriteCond %{TIME_HOUR}%{TIME_MIN} <2359
Redirect 302 ^old-url-here http://www.some-domain.com/new-url-here
Redirect 302 ^old-url-here http://www.some-domain.com/other-url-here
I used 2359 to make it more readable, it should be 0000 though I’ve not tested it. Between 1200 and 2359 you’d get http://www.some-domain.com/new-url-here
and outside of that you should get sent to http://www.some-domain.com/other-url-here
instead.
Edit: Use 302 instead.
Thank you @jan Dembowski for your reply,
I did as you said and now my .htaccess
looks like this:
RewriteEngine On
RewriteBase /
RewriteCond %{TIME_HOUR}%{TIME_MIN} >1100
RewriteCond %{TIME_HOUR}%{TIME_MIN} <0200
Redirect 302 ^http://domain1.com/old-page/ http://domain1/page.html
Redirect 302 ^http://domain1.com/old-page/ http://domain2.com/
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
but when I go to http://domain1.com/old-page/
no redirect takes place, it just shows me the page and nothing else happens.
I’m on a Linux server with Apache 2.2.29 installed.