XF 2.1 Alternative to front_controller_pre_route in XF2?

sajal

Active member
I've used the "front_controller_pre_route" code listener in XF 1.5, now in XF2 there's no such listener. I used this to do some static 301 redirects for specific URLs.

I am planning to use "controller_pre_dispatch" in XF2, is that OK, or shall I use some other way to do 301 redirects? I've a lot of (1000+) redirects to do, so I have to do this in code instead of Nginx config file.
 
Are those redirects static or do you need code to calculate the target?

If they are static I'd use a map in nginx
 
Back
Top Bottom