A Better Way to redirect a site collection in SharePoint using IIS URL Rewrite
Have you every written a blog post, and got some helpful comments from folks who have a better way to do something? Well that’s exactly what this is! My last blog post http://www.techrevmarrell.com/create-a-sharepoint-vanity-ish-shortened-url-and-redirect-to-a-site-collection/ Was about a requirement I had to create a shortened URL that they could provide to users and this shortend url would automatically redirect a user to another site collection. Well the method I ended up using was to create an explicit Managed Path to create the shortened url. Some asked why I just didn’t use a DNS entry, and for my particular requirement, it wasn’t available to me, nor was a redirect at the load balancer level. So for the URL shortner explicity Managed Path. Again to see how I did it, you can check out the link above. Now the second thing I did was create a webpart page, and add a JavaScript redirect (really just meta tag redirect) to the homepage of the site collection that I wanted to redirect. I mentioned this wasn’t the cleanest option and I’d already tried to utilize IIS URL Rewrite to solve my issue, and I had, (will come back to this shortly) but when my users did some testing on my solution, everything was great on the Desktop side, but on the mobile device side the solution failed. And this was because I used a web...
Read More