@pfaffman
I am not using permalinks in discourse
My code is working for old site posts URL redirect to discourse topic or posts
But with this code they block some URL like login , signup, other forms
get ‘/*path’ => ‘static#custom_redirect’, constraints: lambda { |request| !request.path.include?(‘/preferences/’ ) || !request.path.include?(‘/custom_sso_login/’) || !request.path.include?(‘/t/’ ) || !request.path.include?(‘/admin/’) || !request.path.include?(‘/singup’) || !request.path.include?(‘/login’)}
You have some idea what I am missing !!