Rewrite URL to include globals keywords in URL


(Nic Hubbard) #1

Matrix Version: 5.4.3.1

I have a specific URL that I need to rewrite the URL to include globals date keywords. For example, I would like:

https://www.puc.edu/calendar?date=%globals_date_d-m-Y%

So that if you if you accessed https://www.puc.edu/calendar it would always rewrite to include the current date in the GET params. E.g. https://www.puc.edu/calendar?date=09-05-2023

Is there any way of doing this? I tried the Remap Manager without success, and wondering if I need to use Apache.


(Nic Hubbard) #2

I ended up solving this without a redirect. I set a session var using the current date as default, but if there was a GET I overwrite this:

Works perfectly!