Site icon PJG Creations

Redirecting .co.uk to .com with ASP.net MVC IIS7 URL ReWrite 2.0

I recently started work on a new website, where I’ve purchased the .co.uk and .info domain names. However, I wanted to redirect people automatically to the main .com domain.

As my host supports the IIS7 URL ReWrite 2.0 module, adding the following section to the primary web.config file solved this for me;














Exit mobile version