Skip to main content
Trans Am

Todd Klindt's SharePoint Admin Blog

Go Search
Home
Blog
Netcast homepage
SharePoint Terminology Wiki
  

Todd Klindt's home page > Todd Klindt's SharePoint Admin Blog > Posts > Redirection options in SharePoint
Redirection options in SharePoint

I see questions about redirecting users in SharePoint all the time. Usually they're in the context of "I want to redirect users, can I do this with an Alternate Access Mapping?" SharePoint admins know that if they don't set their AAMs up correctly that SharePoint will bounce their users around like a SuperBall, so they hope they can harness that power for good, instead of evil. While you can in certain circumstances most likely you will want to use a different approach. In this blog post I will show you several different to redirect users in SharePoint. Then when you find yourself needing to, you can use the method best suited for your situation.

When deciding which redirection method to employ, you need to determine what you're redirecting from and what you're redirecting to. That will determine which method to use. For each of the methods I discuss below I will provide examples of the situation you would use it in. Enough with the introduction, let's get down to it.

Vanity URLs

One of the most common requests I see is for vanity URLs. SharePoint URLs can get long and unmanageable and admins want URLs that their users can remember. They want to use something like http://software and have it forwarded to http://team/sites/software/development. To set expectations correctly, you should just come to terms with the fact that you aren't going to write SharePoint URLs down, you'll pass them along via or IM. If you do want short URLs you can have them forward to deep SharePoint sites. Of course the URL your users will eventually get to will be the long URL, but the jumping off point will be easy to remember. To do this kind of redirection I use IIS directly, I don't get SharePoint involved at all. Create a new virtual server in IIS Manager and give it a descriptive name like "Software Redirect." When you're walking through the wizard you'll take the defaults. You'll have to point it to a local directory. This is only temporary, so you can point it anywhere. After the virtual server is created, edit the properties. Open the "Home Directory" tab and click "A redirection to a URL" then type your SharePoint URL in the "Redirect to:" box. It should look like this:

Figure 1 – Redirection settings

This method works pretty well and is easy for users. It does have a couple of drawbacks you should know about. Each virtual server running takes up RAM on your IIS server. You can take steps to mitigate this. I create a new App Pool and use it strictly for the redirect virtual servers. Then I set that App Pool to timeout if idle for 1 minute. Since this App Pool does not really do much, it does not use much RAM, but this reduces that memory footprint liability to only a minute or two on your web server each time someone uses the redirect. In my experience the App Pool only used 5 or 10 MB of RAM each time someone hit it. With today's machines that's not much of a hit. Overall I've been very happy with this approach.

Figure 2 - App Pool memory settings

Server URL has changed and users have bookmarks

This can happen from time to time, a server name changes or you move your site from HTTP to HTTPS. If your users have bookmarks to the old URLs this can cause problems. One option is to tell your users they're out of luck, but this is a great opportunity to look like a SharePoint Hero. You may be able to use AAMs to work this type of redirection, but they don't work consistently. For instance, the AAM will redirect a URL without a page, but will not redirect one that does. So http://oldserver would redirect but http://oldserver/default.aspx would not. Because most bookmarks will have the page included we can't rely on this. To handle this I employ a technique similar to how I handle Vanity URLs. First you'll need to make sure your existing SharePoint virtual server no longer responds to the old URL. Normally I just change the port to an used port like 8080, so that it's easy to change back. Next create a new virtual server and make sure it responds to the old URL, so you may need to add a host header or adjust the port. Like above, after you've created the redirect virtual server edit its Home Directory property. Instead of feeding it a static URL we're going to employ some redirect variables. Before I explain them, here's what your redirect URL will look like:

Figure 3 - Redirection variables

Two changes should jump out at you. First, the URL ends in $V$Q. The $V represents the original URL the user is trying to access, but without the protocol, servername or parameters. The $Q represents any parameters the URL included. Here's a crude drawing of how the URL breaks down:

Figure 4 - URL breakdown

Since all we want from the old URL is the path and the parameters, $V$Q works well for us. You can find a list of all the supported redirection parameters here. You'll also want to check the "A permanent redirection for this resource." This gives the client back an http 301 reponse which tells it the redirect is permanent. Some clients can understand this and will fix the Bookmark to the new URL. Other clients can't understand 300 level responses at all and will fail completely regardless. Full documentation on this switch and the rest can be found in the IIS Manager help. Once the screen is up you can hit F1 to open the help. After you have this all configured any requests this virtual server handles will be forwarded with path and parameters to the URL you specified.

Redirect from Deep URL

Sometimes you aren't redirecting an entire URL, or even just the servername. Sometimes you're just moving a web and you want users to be redirected to the new location. Since you don't want to redirect the entire web application you can't use either of the previous techniques. Fortunately there is a way. There is much magic in the Content Editor Web Part (CEWP) and this is another example. You can use a CEWP to insert HTML code to send your users wherever you want them. To utilize it add a CEWP to your web part page, usually the default.aspx at the root of your web. Edit the web part properties. Click Source Editor and add a Meta Refresh tag to send your users to the new site. It will look like this:

Figure 5 - CEWP Properties

The "10" in the content tag means the page wait 10 seconds before it refreshes. A longer time is handy if you want to put a message alerting your users to the new location before you forward them. The URL is the URL your users will be sent to. Of course this will only work on the page you put it on, so you may need place it on multiple pages in your web, like your Shared Document library pages. Fortunately since it is just a web part you can export it and import on additional pages, you don't need to recreate it each time.

There are some drawbacks to this approach, and it's generally considered bad form to use a refresh tag to forward users. For one it breaks your users' Back button in their browsers. It can also confuse your users, especially if the redirect is fast and there isn't a note on the page explaining that the site has moved. Finally, make very sure the URL you're redirecting them to is valid. If not they get stuck on a dead page and no way to use Back to get out. Sometimes it is your only option though.

This blog post wouldn't be complete without a mention of MOSS' Redirect Page content type. If you're using MOSS and you're on a Publishing Site you can access to it. Go to your Pages document library and Click new. It will be in your list.

Figure 6 - Redirect Page content type

Once the Redirect Page is created you'll need to Edit its Properties and enter the URL you want it to redirect to. You'll also need to preview the page and check it in before it will work. Unfortunately this solution only works on Publishing sites.

As you can see, SharePoint and IIS provide many ways to redirect users. Each method has its benefits and drawbacks. Hopefully this blog post will provide you with one method that will work for your situation.

tk

 

Comments

An extra tip ($S)

Todd,

Firstly, thank-you for highlighting how to do this, I've struggling with exactly this scenario for weeks!

Secondly, I have something to add. My scenario: I moved a site (previously http://server/it) to a new location underneath a parent site (http://server/group/it).  My users now hate me becuase all their silly hardwired URLs to documents are all broken.

Your Redirection Variables tip didn't quite work for me  You've suggested my redirecting virtual server should point to: http://server/group/it$V$Q, but this didn't work for me.  Howver reading through the documentation you linked, I found that http://server/group/it$S works perfectly.

I'm a hero again!

R.
at 8/20/2007 5:55 AM

Thanks very much Todd.

I used Redirect from Deep URL method worked great for me.
at 9/20/2007 5:40 PM

Thanks nice Article but a have a couple of questions.....

RE the vanity URL i have attempted this but to no avail

I am have a sharepoint server with 5 subsites in the format of
\\serverx\sites\site1
\\serverx\sites\site2
\\serverx\sites\site3
\\serverx\sites\site4
\\serverx\sites\site5

these are being migrated to a new server in the format of
\\servery\sites\site1
\\servery\sites\site2
\\servery\sites\site3
\\servery\sites\site4
\\servery\sites\site5

the sharepoint sites are all subsites of one main site - is it possible to use the vanity URL  method with this sort of setup? as i dont see any obvious way of specifying where you choose the originating site in IIS or am I missing something - as this wasnt illustrated int he IIS redirection settings?

I assume this will not work as they are all subsites of the default sharepoint 80 site in IIS.

Or is the only option using the hardcoded CEWP method which I have tested sucessfully......

Hope you can help me out - many thanks for the info.


at 10/11/2007 10:08 AM

What about the _layouts directory?

By the way, your suggestion worked great for redirection of a bookmarked document library.   Thank you!  I still cannot get the _layouts directory to redirect if it has been bookmarked. 

Kelly
at 10/31/2007 3:06 PM

vAx

How would you go about redirecting 4 different domains to the right site.

I have 4 sites under the main web application:

http://sharepoint (site 1)

http://sharepoint/site2

http://sharepoint/site3

http://sharepoint/site4

These 4 domains need to be redirected to the right site as follow:

www.site1.com goes to http://sharepoint
www.site2.com goes to http://sharepoint/site2
www.site3.com goes to http://sharepoint/site3
www.site4.com goes to http://sharepoint/site4

 
I do have 4 different Master pages and the sites look totally different from each other.

I want to preserve my DNS settings so if my users will type www.site1.com it should keep the domain name not the internal URL http://sharepoint/site1

I tried to use AAM but it doesn't work. I cannot specify more than one Intranet zone.

Thanks!
at 12/9/2007 6:58 PM

Re: vAx

I don't think there's a way to do that out of the box.  I think you could do it with ISA Server 2006 possibly.

tk
Todd O. Klindt at 12/9/2007 10:08 PM

Is there a way to support dynamic redirects using MOSS 2007 redirect page layout?

is it possible to redirect users to different pages based on condition?
at 1/28/2008 4:41 PM

Re: Is there a way to support dynamic redirects using MOSS 2007 redirect page layout?

What conditions do you want to look at?  Have you looked at Variations?  They may do what you're looking for.

tk
Todd O. Klindt at 1/28/2008 4:51 PM

Re: Is there a way to support dynamic redirects using MOSS 2007 redirect page layout?

Thanks Todd.

Conditions could be based on User profile properties. If user has a specific property value I would like to redirect him to a specific site from where he can start browsing.

Or

Is it possible to pass a redirect url as query string parameter dynamically to the page created using redirecting template?

Also if we do not want to view the page(content shown during redirect : You will be redirected in 5 seconds..) during redirects, what would be the options?
at 1/28/2008 9:57 PM

Site Redirection (similar to vAx above)

We are setting up 94 collections in SharePoint 2007 with the following naming:
http://districtweb.aaa.gov/districts/districtcode, each collection having a unique districtcode.

We want to have 94 redirects of
http://districtcode.aaa.gov to http://district.aaa.gov/districts/districtcode.

Is there a way to programatically do this without creating 94 separate web site redirects?
at 2/12/2008 9:35 AM

Re: Site Redirection (similar to vAx above)

You're right, the redirections ass I've laid them out doesn't scale well, at least not to 94.  :)  If I had this setup I would look into having all 94 of the http://districtcode.aaa.gov URLs go to a single page.  That page would have an ASPX page that calculated the redirect based on the URL the user used.  If that doesn't get you close enough to your solution let me know and I'll look into it more.

tk
Todd O. Klindt at 2/12/2008 9:52 AM

Re: Is there a way to support dynamic redirects using MOSS 2007 redirect page layout?

There are a couple of web parts that can parse query strings, but I'm not sure if any of them could execute a redirect or not.  I do believe Variations can do redirects based on username, if that helps.

tk
Todd O. Klindt at 2/12/2008 9:58 AM

Re: Thanks nice Article but a have a couple of questions.....

You should be able to use the "Server URL has changed and users have bookmarks" method since essentially you're moving from http://serverx to http://servery.  See if that works for you.

tk
Todd O. Klindt at 2/12/2008 10:00 AM

Vanity URLs question

Hello,
First off, this is a great post.  I need to do something similar to
 Vanity URLs but I need something like www.url.com/test to go to www.url/com/pages/page.aspx.  The physical path to www.url.com directory is \\Inetpub\wwwroot\wss\VirtualDirectories\80\

This is where I have created the test directory.  Then I go back to IIS and look at www.url.com see the test directory, set the properties to go to the exact redirect URL that I want but then it doesn't work.  It's so close but not working.  Any suggestions on how to handle this?
at 3/10/2008 9:54 AM

Re: Vanity URLs question

You could use the "Redirect from Deep URL" method to do this.  Create a subsite at http://ww.url.com/test.  On the default.aspx page there create sa Content Editor Web part and do the forward to http://www.url.com/pages/page.aspx.  I wouldn't do anything in the file system at all. 

tk
Todd O. Klindt at 3/10/2008 11:27 AM

Vanity URLs question

Hello,
Thank you for your response to this.  I used the Deep URL redirect and it works just fine for me.  Thank you again.
at 3/10/2008 2:54 PM

Re: Vanity URLs question

Excellent.  Glad to hear it!

tk
Todd O. Klindt at 3/10/2008 9:11 PM

deep URL question

Hello,

I went through your blog this is good stuff, thanks! although I cannot figured out how to do following, our home/start page has long URL something link http://server.domain.com/sites/home/pages/default.aspx I tried to crate my own redirect page and add to default content in documents using out-of-the box IIS functionality but that did not work simple http://server.domain.com/redirect.aspx was not recognized by MOSS2007. I simple want to by redirected to this deep path while typing only http://server.domain.com can this be done?
I think what closest is matching my needs is either Redirect from Deep URL or Redirect Page functionality but either I'm doing something wrong or missing something.
I took you adviced from one of your previous responses but while I try to create subsite  I only can create subsite under http://server.domain.com/sites/home/ which already is too deep how do I create redirect page under the root of http://server.domain.com/   ? and I do not want to create another URL like http://anothername.domain.com and redirect to http://server.domain.com as described in Vanity URLs section I already tried that on my own before finding your blog by creating another website in IIS where starting mage is single HTML page with redirect function.

Thanks
at 3/13/2008 9:32 AM

Re: deep URL question

If you go directly to http://server.domain.com/default.aspx does it render?  Is it SharePoint?  You should just be able to drop a CEWP onto that page and redirect to your deep URL.  You mentioned you tried it but it doesn't work.  Does it just sit on the default.aspx page?  It should work for what you're trying to do.

tk
Todd O. Klindt at 3/16/2008 1:07 PM

Re: deep URL question

no it does not, I get "HTTP 404 Not Found" and here is odd part, I can go to http://server.domain.com/iisstart.htm and has no problem seeing default "Under Construction" but if I have default.html in same directory with redirect code it doe not work. I even tried to use existing iisstart.htm and paste redirect html code there but that gave me "HTTP 404 Not Found" again. And I know code works because I can have this page on my desktop double click on it and all works...
And Yes it is MOSS2007
at 3/17/2008 9:18 AM

Re: deep URL question

please disregard my previous post I do not know why but it is working now with http://server.domain.com/default.html so I'm real close with what I was trying to achieve. One remaining question if you do not mind, how is MOSS different from other IIS websites that it does not recognize http://server.domain.com with default.html under web properties Documents and Default Content Page *Enable*? if I go with http://server.domain.com/default.html works but http://server.domain.com does not.
at 3/17/2008 9:44 AM

Re: deep URL question

It sounds like you don't have your web application extended with SharePoint correctly.  /iistart.htm is the default IIS page when it's installed.  If you have SharePoint extended to the virtual server then you shouldn't be using default.html, you should be using default.aspx instead.

tk
Todd O. Klindt at 3/23/2008 9:01 PM

I think I don't understand, unfortunately !

Hello,

I have the following situation:

I had a site named RD (http://myserver/RD), under which I had several sites (/RD/module1, /RD/module2, etc...).

I had to move my modules site, one level down, by creating a new site under RD. So, I know have:
/RD/project1/module1
/RD/project1/module2
etc...

So, basically, my server and its address remain the same, it's just one more level in my sites tree structure. How can I handle this ?

I try to understand how I could use one of your methods in this post, but the thing is I don't want to change my server url, I just want for example to redirect:
http://myserver/RD/module1/Shared%20Documents/test.txt
to
http://myserver/RD/project1/module1/Shared%20Documents/test.txt

Is there a way ?

Many thanks for your help !
at 3/28/2008 9:42 AM

Re: I think I don't understand, unfortunately !

I can't think of any way out of the box to do it for document links like you mention.  The best I can think of is redirecting the the old front page to the new front page.  Sorry.

tk
Todd O. Klindt at 3/30/2008 10:02 AM

Using MOSS redirect page without the www.

Hi

We are using the MOSS redirect method and it works great for translating http://www.mydomain.com/sms to http://www.mydomain.com/sms/something/pages/default.aspx

We can also access our sites with just http://mydomain.com.

But a redirect from http://mydomain.com/sms does not work? It just default to the frontpage at http://mydomain.com/

/peter
at 3/31/2008 8:13 AM

Port Numbers

Hi Todd

Excellent article!

Here is the problem that I'm trying to solve:

I have a WSS 3.0 site collection for all of my departments which is accessed by http://intranet.company.com

I need to create additional tabs for Products.  The information in this tab should be stored in its own Site collection.  It must also be accessible via a friendly URL http://products.company.com.

I create a new Web application, and I could manually add a tab to take the users to this Web application.  But the URL is http://products.company.com:12345.  Users cannot be expected to know port numbers ... I don't have ISA server ... what can I do?

Your friend in Iowa City!
at 4/14/2008 10:53 AM

Need help in redirection

Dear Sir,

We are having different sites for different Teams, User is authenticated in Active Directory and they get to the home page like http://intranet.abc.com; There they see a list of site to which they can connect, access is given based on the sharepoint permissions, now we are looking for a solution in which user from different teams will use the same path http://intranet.abc.com and are being redirected to their own site. that is http://intranet.abc.com/sites/site1 .

at 5/5/2008 6:12 AM

Question about redirecting a published SharePoint Site

Hi Todd,

Thank you for publishing such an informative article.  I hope you can help me with the following situation.  We have ISA2006 and SharePoint 2007 and would like to have users on the web log in to http://sharepoint.domainname.com but be redirected to http://sharepoint.domainname.com/services.  I tried extending the existing web app using WSS and creating an internet zone using WSS I'm receiving an error messages about the format. 

Thank you
at 5/7/2008 10:09 PM

Alternate Port

Would this method work for alternate ports on mysite.
Example:
http://intranet.company.com (root)
http://intranet.comapny.com:2222 (mysites)
alternate address
http://intranet.company.com/mysites
at 5/21/2008 11:20 PM

Re: Alternate Port

You could bounce them to the :2222 site from /mysite.  You can also just host your MySites in your current web app and get rid of the alternate port completely.

tk
Todd O. Klindt at 5/22/2008 10:11 PM

Error 403 - Forbidden

Thanks for the post.  I tried both the vanity URL and bookmarked sites and I get 403 errors - you are not authorized to view this page, with both techniques.  Do you know what I might be doing wrong, of am I missing something? 
at 6/4/2008 12:37 PM

Error 403 - Problem solved

I answered my own question about getting 403 errors trying to set up for the changed URL procedure.  I thought I was supposed to create a new web site or virtual directory by right-clicking on the parent site in IIS.  Doing that, then following the procedure gave me 403 errors.

What I did instead that did worked is: I created a folder under the parent virtual server in C:\Inetpub\wwwroot\wss\VirtualDirectories\parent-site.com80, then I located that directory under the parent web site in IIS.  I right-clicked on that folder, then in the properties for that folder, on the Directory tab, I selected "A redirection to a URL," entered "/newname$S" in the Redirect to  field (using $S to append the suffix in the link), and checked "The exact URL entered above," and "A permanent redirection for this resource."

Another instance where this is useful is, if users have alerts, such as task assigned to you or link to specific documents that were generated using the old site name, then the site is renamed, users can now click on links in the old alerts and get the item in the site as it was renamed.
at 6/6/2008 12:12 PM

Re: Error 403 - Problem solved

Glad to hear you got it working.  :)

tk
Todd Klindt at 6/6/2008 6:27 PM

html redirect code

About Redirect to other web address // html code --

http://html-lesson.blogspot.com/2008/06/redirect-to-web-addres.html
at 6/24/2008 7:29 AM

Help needed for user based redirection

Hi,
Thanks for the great article.We have a urgent requirement for user permission based redirection logic. Under our root site we have many subsites and further these sites have subsites. users have permission on a set of subsites. When trying to access the  root site, we want to redirect them to one of subsites they have access to. Again, we have certain conditions for this redirection. we want this redirection to be consistent. Also, if user doesn't have access to any site , based on some condition we want to take the user to a page where he can provision a site for himself. We have form based authentication. I want to know what are the options available to us to achieve this.. also what would be best for  us. Ours is an Internet facing site. 

- kaushal
at 6/29/2008 8:45 AM

SharePoint has a Redirect page option as standard

Hi. Maybe it hasn't come up before because its so obvious but MOSS standard page types includes a Redirect page which offers a simple redirect control. No code or IIS config required!
Hope this helps.

- James P.
at 7/1/2008 8:42 AM

Re: SharePoint has a Redirect page option as standard

Is that the same thing as the last example I give in this blog post?

tk
Todd Klindt at 7/1/2008 9:19 AM

Re: Help needed for user based redirection

I don't know of any way to do user based redirection out of the box.  I think that will require custom code.

tk
Todd Klindt at 7/1/2008 9:20 AM

SSL Redirects

I had a need to do SSL Vanity Redirects for several subsites.

https://site1.domain/ -> https://main.domain/site1/

I was able to do this by combining Microsoft's SSL Host Header solution with your Vanity Redirect solution.

1) Create new website.
cscript c:\windows\system32\iisweb.vbs /create c:\empty site1.domain /d site1.domain /dontstart
2) Add SSL Host Header.
cscript c:\inetpub\adminscripts\adsutil.vbs set /w3svc/<ID>/SecureBindings ":443:site1.domain"
cscript c:\inetpub\adminscripts\adsutil.vbs set /w3svc/<ID>/AccessSSL TRUE
3) Edit web site for redirect to https://main.domain/site1/
4) Start web site.

I am not certain if this is the best way to do this, but it worked.

-Shane
at 7/7/2008 4:05 PM

Works great!

Nice example of redirecting, clear and helpful screen prints.  Helped me redirect users to force them to the SSL site.  Thank you.
at 7/15/2008 2:06 PM

Rewriting

Could this not be easily accomplished using URL rewriting via ASPX?
at 7/22/2008 11:43 PM

Re: Rewriting

You can certainly do this with an ASPX page as well.  That has its pros and cons, depending on what you're trying to do and whether you're a programmer or not.  :)

tk
Todd Klindt at 7/23/2008 1:08 PM

sn.vc

Thanks for this tutorial. I has been wondering how to did that but now i know.
at 8/23/2008 7:38 AM

Migrating Site collection to new server

I'm moving an entire site collection form one server to another one but leaving the other site collections from the original server alone. Can I use the "Server URL has changed and users have bookmarks" and create the redirect at one level below the server name? For example, I want to send http://oldserver/mysite to http://newserver/mysite. Can I create a Virtual directory for the redirect and use http://newserver/mysite&V&Q ?? Or am I forced to place the redirect code CEWP on each of the subsites of http://oldserver/mysite/ which users will have bookmarks for?

-Greg
at 9/16/2008 1:03 PM

Re: Migrating Site collection to new server

I don't think that will work, since that type of redirect is for the entire namespace.  If I understand your question correctly you only want to redirection the Mysite site collections,  but there are other site collections you're leaving in place.  That means you can't redirect the entire web app.

You'll probably need use a CEWP.  Be careful though, mysite are rendered by different URLs if hit by someone besides the owner.  Make sure and test it all out before you put it into production.

tk
Todd Klindt at 9/16/2008 10:04 PM

Redirection

when we redirect the page , by default it takes 5 sec.
how we can change the timings.
at 11/25/2008 9:36 PM

Re: Redirection

Which method are you using? If you're using the method in the "Redirect from Deep URL" section then simply reduce the value of Content to a lower number?

tk
Todd O. Klindt at 11/25/2008 10:31 PM

Re: Redirection options in SharePoint

Hi Todd,

I did a Renaming in SPD changing the OLD SITE http://server/OLD/default.aspx to the NEW SITE http://server/NEW/default.aspx.

I want to redirect all the links that user has inputted which refers to the subsites in the OLD SITE to the NEW SITE.  So I created a new virtual server and redirect to "http://server/NEW$S". 

It doesn't work.  In your post saying "Next create a new virtual server and make sure it responds to the old URL". How do I do this?  I wonder if that caused the problem.

Also since I did the site name renaming,  The OLD SITE doesn't exist any more.  Should I recreate it http://server/OLD/default.aspx after the renaming?
at 12/2/2008 4:22 PM

Re: Redirection options in SharePoint

Hi Todd,

I did a Renaming in SPD changing the OLD SITE http://server/OLD/default.aspx to the NEW SITE http://server/NEW/default.aspx.

I want to redirect all the links that user has inputted which refers to the subsites in the OLD SITE to the NEW SITE.  So I created a new virtual server and redirect to "http://server/NEW$S". 

It doesn't work.  In your post saying "Next create a new virtual server and make sure it responds to the old URL". How do I do this?  I wonder if that caused the problem.

Also since I did the site name renaming,  The OLD SITE doesn't exist any more.  Should I recreate it http://server/OLD/default.aspx after the renaming?
at 12/2/2008 5:56 PM

must use default.aspx

I don't know if this is the right place for this question but I had to uninstall sp 3.0 and reinstall it on same 2003 server. After having to reservice pack the machine  so that dot net 2.0 would show up in the IIS web service extensions and be allowed I reinstalled wss 3.0.
Now I can only reach the site from the outside with
http://internetsubdomainnaem.mydomain.com/default.aspx
before all I needed to do was type
http://internetsubdomainname.mydomain.com
What is important is that although I can log in and build the new site - I noticed that when I left pages I would sometimes get permission denied. I thought there might be a problem with permissions but I realized that when I left a page I was going to Http://servername. If I substituted the server name with the internetsubdomain.mydomain.com then it seemed to correct the problem.
Where is the setting that would allow the site to come up with just the url? I think this would fix the other problems.
at 1/24/2009 8:18 PM

Re: must use default.aspx

My first instinct is to check your Alternate Access Mappings. Read through this post and make sure everything is configured correctly, http://www.toddklindt.com/blog/Lists/Posts/Post.aspx?ID=39

tk
Todd Klindt at 1/24/2009 8:37 PM

Redirecting an asp page to a moss redirect page

I have a requirement where
A) any reference to a particular asp application/page in the browser must be redirected using a httphandler to the moss "redirect page".

B) The redirect page must have built in logic to redirect the page along with the initial source(abc.asp) to another page which has an iframe from where the asp application is launched.

please suggest if using a httphandler to redirect from a non-moss app to a moss redirect is correct.

thanks
Jane
at 1/27/2009 4:58 AM

First time users - Redirect to End User Agreement Page

After my users authenticate with the ISA server - it should take them to a terms & conditions page. This page should come up only during the first page. Is it possible provide a solution for such an requirement.

Cheers,
Britto
at 2/19/2009 4:24 AM

Re: First time users - Redirect to End User Agreement Page

That may be possible, especially since ISA is in the mix, but I have no idea how.

tk
Todd Klindt at 2/19/2009 2:20 PM

Re: must use default.aspx

You need to configure an Alternate Access Mapping for any URLs you will be using to access SharePoint. See this blog post for directions: http://www.toddklindt.com/blog/Lists/Posts/Post.aspx?ID=39

tk
Todd Klindt at 2/19/2009 2:22 PM

Re: Redirecting an asp page to a moss redirect page Edit

Not sure how to do this, sorry.

tk
Todd Klindt at 2/19/2009 2:23 PM

Redirection

Thanks Todd.  $V$Q really help me.
Wish you all the best.

Best Regards,
Thandar
at 2/25/2009 2:20 AM

Redirect from unique urls to unique urls

This is my dilemma; I have an Extranet MOSS farm that I once used host-named site collections. This was great but the need for SSL threw a wrench in the mix. We use a Cisco Content switch and the need was to house the SSL cert on the content switch and not on the SharePoint servers. This meant I had to use AAM to add the https addresses since the content switch passed only http and the clients needed https responses. The required me to create individual Web Apps for each unique url with the limits of 10 per farm. What I would like to do is use one Web App that is extended and redirect the unique url to these extended sites. For example www.unique1.org redirected to www.sharepoint.com/sites/unique1 and the users see it as www.unique1.org/sites/unique1. Is this possible or am I going nuts?
at 3/19/2009 8:33 AM

MySites thru ISA 2006

I am running into a problem with access to Mysites once I have logged into the HTTPS site. I am getting 403 anymous access errors. Can someone provide assistance?

Regards,
Alex
at 3/22/2009 10:46 AM

slow performance of Redirect using META Refresh

Hi hi.

I have a site that I have set META Refresh to redirect at 0 second.

However, it waits for around 10-20 sec before it is redirecting

Could you kindly advise what may be the cause for this?

Thanks
at 3/25/2009 12:50 PM

Re: slow performance of Redirect using META Refresh

What happens if you set it to 1 instead of 0?

tk
Todd O. Klindt at 3/26/2009 4:43 PM

Public web site hard coded .html links

Great post.

I have a quick question.  I have a public facing internet site (www.sitename.com) that was an old html site that I am moving to moss 2007.  When people come to http://www.sitename.com, they are correctly redirected to http://www.sitename.com/Pages/Default.aspx

Is there any way to make sure that users (and search engines) with links to http://www.sitename.com/index.html are correctly routed to  http://www.sitename.com/Pages/Default.aspx?  My users are presently getting a 404 for this link.

Thanks,
Bryan
at 4/7/2009 12:05 PM

Re: Public web site hard coded .html links

Hey Bryan,
You should be able use the "Redirect from Deep URL" method. Create an index.html file, save it in the root of the web app (probably need to use SharePoint Designer) and use the Meta tag to redirect folks to the /Pages/default.aspx. That should fix it.

tk
Todd O. Klindt at 4/7/2009 8:20 PM

Multiple host headers for a site re-direct using vanity URL's?

Great post!

Have used this to re-direct a sharepoint site from a domain name http://test to the long http://test.xyz.com/portal/sitename path (AAM set up too)

One question though. It seems as though the method I used, method one (Vanity URLS) only works where there is only one host header assigned. I would like to use it for the fully qualified domain name for the DNS entry.

eg. Currently

http://test redirects to http://test.xyz.com/portal/sitename

http://test.xyz.com does not redirect to http://test.xyz.com/portal/sitename

Is there anyway I can achieve this using the one single DNS entry test (which has a FQDN of test.xyz.com)

The re-direct website is running off any ip address, port 80, with a DNS entry of http://test assigned as a host header. If I add http://test.xyz.com to the same website, this does not work and the existing re-direct fails.

Thanks,
Aj
at 4/20/2009 4:24 PM

redirect page redirects to %2520

Hi Todd,

using the redirect page with a link that contains a space, as an editor it works fine, but as a usual user it redirects wrong as you see in the title. What can I do about that?

Greets, Michael
at 5/1/2009 4:56 AM

How to redirect hard coded document library links?

I read through your very informative article as well as the comments, but didn't run across a situation that is quite like ours.

We have an existing sharepoint 2003 server - let's call it existing.domain.com

We have a new MOSS 2007 server - let's call it moss.domain.com

We are slowly migrating sites from existing.domain.com to moss.domain.com

We have placed meta redirects on the default pages for the sites on the existing server. The problem is users who have hard coded or bookmarked links directly to specific documents in the document libraries.

How can we redirect these users?

Thanks.
at 5/1/2009 11:18 AM

RE: How to redirect hard coded document library links?

I recently released a tool on CodePlex to make URL redirection in SharePoint easier (and specifically handle your situation). Check out the RDA Collaboration Evangelist Team blog for details and the link to the CodePlex project:
<a href="http://rdacollab.blogspot.com/2009/06/sharepoint-url-redirector-available-for.html">http://rdacollab.blogspot.com/2009/06/sharepoint-url-redirector-available-for.html</a>
at 6/7/2009 5:06 PM

Redirection of Site Collections

Todd,
We had over 160 site collections which we shrunk down to 9 site collections and now we need to do a redirect of all the sites in those site collections to their appropiate landing pages. For example: the old URL would be: http://share/its/xyz/default.aspx and the new is now http://share/sites/xyz/default.aspx.
The old site collections are no longer available due to space constraints, so we cannot do a redirect from the site collections themselves. Which one of your options would work for this scenario? And would a user of a sub-site be also redirected?
at 6/15/2009 9:50 AM

thanks

Thanks this just helped me out after I changed the url of of main site this past weekend
at 7/27/2009 9:54 AM

Does deep redirect from URL work in SP 2003

I see your redirect example is SP 2007.  Is this possible in SP 2003? 

Thanks in advance.
at 8/18/2009 9:26 AM

Re: Does deep redirect from URL work in SP 2003

Yes, this should work fine with the 2003 versions of SharePoint. When I first did the Deep redirect and the vanity redirects it was with WSS v2.

tk
Todd O. Klindt at 8/18/2009 10:58 AM

RE Deep redirects

Thanks Todd!  Glad there are folks like you are out there to give answers to simple and complex questions.  I highly recommend your site and plan to purchase a few of your how to books.  Jonathan
at 8/18/2009 12:33 PM

10 different Vanity urls redirect to 10 different sites

Great article Todd,

I have a scenerio where i have more than 10 vanity urls to redirect to 10 different sites
Ex:
abc.domain.com  target to http://abc.domain.com/portal/site/ab
abc.domain1.com target to http://abc.domain.com/portal/site/ab

cef.domain2.com target to http://portala.domain2.com/portal/site/cef?name=true
cef.domain3.com target to http://portala.domain3.com/portal/site/cef?name=true

like the 2 scenarios above i have lot more to redirect..
I am using IIS 7, win 2008, moss 2007

Any solution how to achieve this.




at 8/24/2009 2:48 AM

Re: RE Deep redirects

Thanks Jonathan. Comments like yours really encourage me to put more comment out. I appreciate them a lot.

tk
Todd O. Klindt at 8/24/2009 1:40 PM

Using IIS7, 2008 , MOSS 2007

This is Great info, Using IIS7, to which I am trying to match up the example displayed at the beginning. Cou please provied some detail as it relates to 7 ?

Thanks
Craig
at 9/1/2009 3:23 PM

AAM.....Page under construction

Hi l
Issue:-  Alternative access mapping  using non standard ports
Sharepoint version :- MOSS 2007 EE

I have a web application running on this link http://example:16784 , and then the client wanted a valid url which can be accessed example http://seethemess 
After adding a dns entry on the ip address ,  I configured the SharePoint alternative access mapping where I opened central administration operationsAlternative access mapping and then selected web application  http://example:16784 and then selected internal urls and entered http://seethemess and clicked ok.
When I tried to see the web application I get a message that the siteb is under construction..
What is that I am doing wrong…please help


Thanks....
at 9/23/2009 8:00 PM

Re: AAM.....Page under construction

You're getting the IIS under construction page because SharePoint didn't create a host header for "seethemess" on the site that example:16784 is listening on, so IIS dumped you to the IIS Default web site. If example and seethemess were running on the same port, you could just add the host header and be done with it. Since it must respond on 16784 and 80 you will have to create a new web app by extending the http://example16784 web app. When you extend the web app give it the url http://seethemess.

tk
Todd O. Klindt at 9/23/2009 9:43 PM

AAM.....Page under construction

Todd ,

Thank you for the reply,

I do have a live web application and a site collection on port 80 which is running fine. Which is used as a intranet in the company

The client has a developed some custom web parts which has to be deployed on another web application and site collection.

For which I have created a web application followed by site collection, where I took the default port number which was displayed, which gave me the url http://example:16784  (non standard port)

Now if I extend http://example:16784 and use port 80 will it affect the intranet which the company is using?

You did mention that if I am using same port for http://example:16784 and http://seethemess  adding a host header would solve the issue..i did add the host entry at

C:\WINDOWS\system32\drivers\etc\hosts

Where I entered the ip address and seethemess and saved it…which did not work.

Am I doing something wrong, please tell me how can that be corrected. Or a possible solution
Thanks…
at 9/25/2009 12:41 PM

Deep URL Question

Hi - thanks for the blog.  I set the tag to 0 seconds and now the page refresh so quick that it doesn't allow me to change it.  I need to change this setting.  How do I go about doing this?

Thanks,

Walid
at 11/9/2009 12:27 PM

re:Using IIS7, 2008 , MOSS 2007

I am facing the same issue as the user 'Craig' listed above on 09/01/2009.

I need to create a vanity url for a long path in MOSS 2007 running on IIS 7, 2008. I am looking for information as to how this is done with IIS7.

Thank You,
Patrick
at 11/10/2009 8:54 AM

Super ....

Todd,
Thanks a lot for your pages,
FYI, I'm not hosting the sharepoint server, then i have use CEWP methode,

Walid,
use Sharepoint Designer to modify the page ...
at 11/11/2009 2:37 PM

MS Performance point integration 2007 with MOSS 2007

hi,
I read your blog and hoep you can resolve my issue.
i have installed MS performance point monitoring server and configured the sharepoint url for deploying dashboards to a sharepoint site on which i am the site collector admin. i have even configured the application pool identity manager to my id  for both PPS monitoring webservices as well as the Sharepoint site. it is giving me an error (The URL for the SharePoint Site is not valid, or you currently have no access to this SharePoint Site. Please enter a new URL). kindly provide a feedback thanks.
at 2/8/2010 3:01 AM

Add Comment

Items on this list require content approval. Your submission will not appear in public views until approved by someone with proper rights. More information on content approval.

Title


Body *


Today's date *

Please enter today's date so I know you are a real person
Attachments