Awd
Verified User
- Joined
- Aug 9, 2015
- Messages
- 316
Hi,
Maybe someone can help me. I have a Wordpress installation and redirected the wp-login.php to /welcome (with a plugin).
Now I like to redirect the page welcome to another page during certain times. I added below the standard rewrite rules for Wordpress this to .htaccess, but it is not working.
Anyone suggestions to get this work? Or maybe someone know ho to get this in PHP code, so I can add it in functions.php?
Kind regards,
Fred
Maybe someone can help me. I have a Wordpress installation and redirected the wp-login.php to /welcome (with a plugin).
Now I like to redirect the page welcome to another page during certain times. I added below the standard rewrite rules for Wordpress this to .htaccess, but it is not working.
Code:
# 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
[B]# Timeslot
RewriteEngine On
RewriteCond %{TIME_HOUR} ^20|21|22|23|24|01|02|03|04|05|06|07$
RewriteRule ./welcome https://www.mydomian.com/newpage.html[/B]
Anyone suggestions to get this work? Or maybe someone know ho to get this in PHP code, so I can add it in functions.php?
Kind regards,
Fred