SharePoint redirects url

Hi!

The other day I needed to redirect a SharePoint url to a especific page, it was temporarily, so at first instance I thought in IIS Module Rewrite.

Other times I used it to rewrite http to https, so in this case it was something different. But searching online, I found a fantastic post from Waldek Mastykarz 

I have to say, that it save my day. In my case I needed to configure the rule, with pattern ^$ (to catch default url), and then in the redirect url the following:

{R:0}/custompage.aspx

Also I indicate the redirect type as 302 to not to lose the SEO configured on the web app

Before configuring those kind of things, remember that you’re modifying the web.config so you’re doing an IISReset to your web app.

After doing this change, everyone was happy and I was able to continue doing my work

Cheers!

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s