I have a WP site which uses a calendaring plugin - currently the url the calendar system creates to change the month view of the calendar is hitting a url which fails to advance the month view of the calendar... I have worked out what the correct url should be - but need a way of redirecting from the incorrect url to the correct one...
So...
The incorrect url is: /calendar/?date=2018-04
The correct url is /calendar/?tribe-bar-date=2018-04
So, I am basically looking for a way to redirect / rewrite the url so that "?date=2018-04" becomes "?tribe-bar-date=2018-04" bearing in mind the year-month after the "=" element in the parameter will change all the time. So need to change "?date" to become "?tribe-bar-date"...
I have had a go using the redirection WP plugin with a rule as below:
/calendar/?date=(.*)
/calendar/?tribe-bar-date=(.*)
but it doesn't work... not sure why... I thought it would but I don't know regex very well!
Any ideas?