Tag Info

Hot answers tagged

6

Not really an answer (not an answer you want to hear anyway) but.. I'm no fan of these redirects. Its healthy for the user to be observant regarding when a page is secure and when it is not. Also several SSL exploits takes advantage of HTTP > HTTPS redirects to hijack session and perform man in the middle attacks, so my answer would be to talk your customer ...


6

According to Microsoft: You cannot use the period character at the end of a site name, a subsite name, or a site group name. You cannot use the period character at the end of a folder name. You cannot use the period character at the end of a file name http://support.microsoft.com/kb/905231/en-us Are you looking for a way to by-pass this directive?


5

What about doing something like this... Force SSL on the site, and redirect users who get an error on the non-SSL site. http://www.servicefirstsupport.com/KB/a178/how-do-i-force-https-redirect-in-iis.aspx http://www.jppinto.com/2009/04/automatically-redirect-http-requests-to-https-iis-7/


5

You should be able to use the available property to build the url you require. Just be aware that many of the property must be accessed with a *get_method* sintax. For the SP.Site use the get_url() "property". For the SP.Web use the get_serverRelativeUrl() property and build up the full url. For the list... don't know if there is an easier way, but you can ...


5

I have had good luck placing links in Web Part Pages Content Editors with javascript when I don't want SharePoint to change a relative URL to an Absolute. Maybe that will work. <A title="A Test" href="javascript:window.location.href('http://myaddresshere.com/tech/@234?i=whatever')">My Link</A>. See if that works


4

What you are referring to are usually called "vanity URLs" because they are used by marketing more than the end users. One free product from Microsoft that can do this is the URL Rewriter. It is actually for IIS but works with SharePoint. This works well and is performant but does have a few drawbacks: It requires a server Admin to add new URl redirects ...


4

I haven't tested this, but I would think you can add it with a javascript maybe. You already have the _spPageContextInfo on your sites. <script type="text/javascript"> document.write('<a href=\"'+_spPageContextInfo.webServerRelativeUrl+'/page.aspx\">link</a>'); </script> That's just an example, probably not the best way to add js ...


4

For each special character, that character length is multiplied by three. I.E. '@' now turns into 3 characters into the URL. Count the number of special characters for the file that got uploaded with the file that didn't. Also the paths get stored in different areas: Excerpt: The limitations In this section apply to the total length of the URL path ...


4

You have to use SPFieldUrlValue. Here is an example: string FullURL = artistWeb.Site.MakeFullUrl(relURL); SPFieldUrlValue UrlValue = new SPFieldUrlValue(); UrlValue.Description = "Put desciption here"; UrlValue.Url = FullUrl; listItem["URL"] = UrlValue; listItem.Update();


4

From a technical point they're exactly the same. The only difference is the way users think of site collections beneath each of them. So it's common to use "/teams/" for site collections for individual teams and "/sites/" for everything else (in SharePoint Online, On-Premises often create their own) "/sites/" and "/teams/" is what is called managed paths in ...


4

Everywhere in this answer replace sp2010 with your site url, Table with your list name, PortalHomeDataContext with your site name (without spaces) + DataContext and RestTest.ServiceReference1 with your generated namespace. This is tested against a SharePoint 2010 site: http://sp2010/_vti_bin/listdata.svc/Table?$filter=(Color eq 'Red') and (Active eq false) ...


4

When you create the Web Application you decide what should be the URL of it. And in your setup it should not be the URL of any of your servers, but the URL for the load balancer which distributes the work between wfe01 and wfe02. And normally you'll leave the web application service running on the App server as well and let Search Crawl use that locally by ...


3

Alternative access map is the feature desgined specifically for the purpose you describe. The instructions I have linked to are for SharePoint v3 (WSS 3.0 and MOSS 2007), but remain the same for v4 (Foundation 2010, Server 2010). To my knowledge Microsoft has not provided updated instructions for the 2010 products and does reference this article in some of ...


3

Here is a good tutorial of how to coexist HTTP and HTTPS. It point out some problems like the cookie which is not shared. You might take a look. http://blogs.visigo.com/chriscoulson/mixed-http-and-https-content-with-sharepoint-2010/


3

Joel Oleson wrote about SharePoint URL Shorteners some time ago. One of his links point to a product I worked on so the usual disclaimers apply.


3

That is an option, however, search would not show those same urls. If you wanted to actually do host header site collections, this would ensure that you have the URLs that are friendly in the search results, and would allow the end user to search using that part of the URL as well. However, there are some disadvantages to the host header URLs as well. You ...


3

HttpContext.Current.Request.Url or http://stackoverflow.com/questions/9701309/get-app-relative-url-from-request-url-absolutepath or SPSite.MakeFullUrl() http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spsite.makefullurl.aspx an example is: using(SPSite site = new SPSite("http://e-albania.tirana.bz")) { using(SPWeb web = ...


3

When you changed the My Site Host URL did you extend and map it to your original my site host or did you just add the binding in IIS and then change AAM? Change the web application and ensure that all of the dependancies are working as well as changing the setting in the User Profile Service Application. Ensure that the URL you wish to use for the MySite ...


3

Sorry, looks like the answer is no. No, this is a hard limit in SharePoint. Studying the schema of the content database reveals the limit originates from the primary key columns DirName and LeafName in the AllDocs table. The only way is to work around it by creating shorter names. They do offer a link to a tool to help (see source), but not sure if ...


3

try this instead: var url = { UserName: ' <SPSWC:ProfilePropertyValue PropertyName="PreferredName" runat="server" id="ProfilePropertyValue6"/>'}; check to make sure above works first ;) once it gets the name you can then do: var name = { UserName: ' <SPSWC:ProfilePropertyValue PropertyName="PreferredName" runat="server" ...


3

There are a couple of methods for this available in the object model without the need to handle the slashes etc yourself, one method using MakeFullUrl: var fullUrl = item.ParentList.ParentWeb.Site.MakeFullUrl(item.ParentList.DefaultDisplayFormUrl); Parameters strUrl Type: System.String A string that specifies the server-relative ...


3

your looking for term based navigation: goto site settings -> look and feel -> click on navigation for both global and current select managed navigation now goto term store managment tool 1.From the site collection Home page, click Site Contents 2.On the Site Contents page, click Settings. 3.On the Site Settings page, in the Site ...


3

The relative path only relates to the Site Collection you are in, if you want to go outside of that boundary, you can't use a relative path (unless you employ some form of URL substitution at the Load Balancer / IIS level). 1 & 2 = "/siteassets/image1.png" 3 = "site-collection-url/siteassets/image1.png"


2

Yeah this bug is annoying. My half baked attempt to solve this, was to have two views, one for intranet and one for extranet, and then set the overlays on each view to be the appropriate url. I suppose you could try to set the aggregation dynamically with a custom list web part? Or you could add two different calendar overlays to the same view, one for ...


2

You need to customise the ItemStyle XSL for the CQWP, and manually tie your CQWP webpart instance to your customised ItemStyle. You will also need to add WorkspaceLink to the CommonViewFields property in the webpart instance. When you're editing the ItemStyle, you should be able to simply do this: <xsl:value-of select="@WorkspaceLink" /> To get ...


2

I am not sure whether the limit applies to your custom link. SharePoint restricts URL length to 255 characters (may be Yes because Navigation Menu is used by SharePoint to add its own links too) http://technet.microsoft.com/en-us/library/ff919562.aspx#limits


2

I asked a question pretty similar to this, seen here. The long of it, try to avoid it. In my OP, I describe a solution that we used for another client that seems to work quite well.


2

this.Page.Request.URL should give you the URL of the current HTTP request.


2

Verify that My Site settings in User Profile Service Application are set to point to this correct My Site location (My Site Settings --> Setup My Sites --> My Site Host). Verify that you don't have multiple WFE's in production that would have conflicting settings in terms of IIS bindings. Verify trusted My Site host location doesn't include the old host ...


2

If you are trying to refer to assets (scripts, images, stylesheets, etc.) that are available on both http and https you could use scheme-relative urls (//). For example: <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script> This will also work for assets located on your local SharePoint server, given you can ...



Only top voted, non community-wiki answers of a minimum length are eligible