I'm thinking of switching my cloud provider from AppHarbor to Azure. Main reason, I love the ability of being able to scale up the number of workers as traffic/cpu usage gets really high.
My question is, how to coordinate this transition for users that still point to *.apphb.com instead of www.{mycustomdomain}.com.
I saw in a "SEO Friendly URLs" blog post that the proper response code when navigating to old URL paths is to do:
return RedirectToActionPermanent("{actionname}", "{controllername}", new { int? param1, string param1 } );
Where the "Permanent" is added. I guess it returns a 301 instead of a 302 which tells google-bot crawlers to permanently redirect their mappings/indexes to the new URL.
So, in my code, do I add a line that checks to see what URL is processing the request (this is assuming that I leave the app harbor site running, but without the custom domain pointing to it), and if it's app harbor, then issue a 301 to the corresponding crawler to go to the new URL, but how to notify the "human" user?
Is there a better way to do this?