change url for my site | Nulled Scripts Download

hello Every body
i install xenforo www
i need to change the domain to subdomain like
and in need code to redirection
every url to the new dir for all my site
and i changed resources url before
i use store
now i want to change store to downloads
the same code for redirection all url to the new one with out error
i need to redirection url to keep me seo good

thanks a lot for helping me