Wondering if this is something that can be done in an .htaccess file – to code a “smart redirect” based on current month.
THE BUSINESS NEED:
At the start of each month, I have to manually go into Yoast plugin and set a redirect for
to actually go to the page for the current month, so that people landing on that page see the food days for that particular month first.
At the very end of February, I manually set a redirect for that /food-calendar link
At the end of March, I will set it to go to …food-calendar/?fwp_FoodMonth=April
I am often too busy or forget, so that sometimes this doesn’t happen until a week or two into the next month.
Is this something that can be programmed in the .htaccess file? A bit of programming so that month number is detected from date, and that if month=1, then URL = …food-calendar/?fwp_FoodMonth=January, if month=2, then URL = …/food-calendar/?fwp_FoodMonth=February, etc?