Currently my forum is located at domain.com. I want to move it to domain.com/community and place Wordpress at root.
I want to setup an redirect so anyone visiting domain.com/threads/successful-upgrade-minor-problem.52851/ (lets say this is a example from an google search) would get redirected to the new domain.com/community/threads/successful-upgrade-minor-problem.52851/ URL. So people coming from Google won't simply stumble upon a dead link.
At same time, if a visitor is visiting domain.com directly, he would be seeing Wordpress.
I believe it is called a 301 redirect, but I am not sure how I can accomplish this. Please help me.