In the last couple of years I have had several url’s for my blog:
- The first: http://www.smeikkie.nl
- The second: http://www.blogaboutsharepoint.com
- The latest one: https://msftplayground.com
When I migrated my blog to my own Virtual Private Server I placed all of my articles on SharePoint Foundation. In order to also access my blog with the other url’s I created some alternate access mappings and changed the bindings within IIS.
But what I really wanted was a Http redirection with a 301 status code. If you enable this by default in IIS you will be redirected to the top level. But it is also possible to redirect with the query string.
Create a new website and add the binding you want.
Click on the website. In the feature view you will find Http redirect:
Add the url you want to redirect to and add “$V$Q”. To pass the query string. Also select “Redirect all request to exact destination.
From the dropdown choose Permanent (301):