Remove permanent redirects

Tom McIntyre

Active member
Our forum has been operating quite a while now and we have accumulated a number of permanent redirect notices. We have never had a functional need for these and all that exist could be removed without any impact on the content.
The second half of this need is that we would like to remove the option to leave a permanent redirect when moving threads from one forum to another.
The alternative to having the option removed from the move dialog, would be to train all of our moderators to never use the permanent option.
 
I usually run a command like this on phpmyadmin with time few weeks in future to make permanent redirects temporary.

UPDATE xf_thread_redirect SET expiry_date = '1597701284';

For instance 1732718434 would set the redirects to disappear in around a month from today.
 
Thanks for the link. I had not noticed it.
I had not looked at the table structure. What value does it store for "permanent."
I believe the form displayed when moving threads is Javascript and does not appear in the templates (at least I could not find it).
 
0 for permanent. To only change time of permanent redirects, I have this saved in my notes!

UPDATE xf_thread_redirect SET expiry_date = '1718193559' WHERE expiry_date='0'

The large number is Unix time iirc. You can convert the number to a value 15-30 minutes in future using a website like this: https://www.epochconverter.com

With this, your redirects would basically get cleared by XenForo as they expire!
 
Last edited:
Back
Top Bottom