I have a website we'll call it domain.com, that was originally written in PHP. Every single valid URL contains the letters "php" somewhere after the "domain.com/" part.
I recently finished a complete rewrite of the site using Django, currently located at beta.domain.com
What I want to do is move the old PHP site to old.domain.com, and move the new beta site to domain.com. I want to do this without missing a beat. I want all old links to redirect to the new subdomain. This also includes linked images (that end in .php).