Can we change the URL of a List
Hi There, I have 1) http://server/sites/site1/subsite1/lists/listname/allitems.aspx and I have 2) http://server/sites/site1/subsite2/default.aspx required http://server/sites/site1/subsite2/lists/listname/allitems.aspx My Question is can we change http://server/sites/site1/subsite2/lists/listname/allitems.aspx only the URL I dont want to move or copy the list to subsite2,I dont wont to rename subsite1 because i got other information. I just want only to change the URL, Because the list does not belongs any more to subsite1 I want list to be linked to that subsite2 i,e; http://server/sites/site1/subsite2/lists/listname/allitems.aspx Can you suugest me the best way. Regards, Sat83
January 18th, 2011 7:02am

Hi, Go to Modify Navigation Option > Select List > click on Edit And change the URL through which you can browse to that list. Hope this helps Regards, Pratik Vyas | SharePoint Consultant | http://sharepointpratik.blogspot.com/
Free Windows Admin Tool Kit Click here and download it now
January 18th, 2011 7:14am

Hi, Thanks for your reply and suggestion. But It does not give my requiremnet i,e; http://server/sites/site1/subsite2/lists/listname/allitems.aspx because it still points to the susite1, if i try the above link i receiver error because it is not in subsite2. Thanks.
January 18th, 2011 8:35am

Ok, Is there any List exists on http://server/sites/site1/subsite2/lists/listname/allitems.aspx ? If yes then change its URL first by going to same modify Navigation option. If no then first create a demo list there which you can browse using http://server/sites/site1/subsite2/lists/listname/allitems.aspx URL after that change the URL for that list Go to Subsite1 and change the navigation of list exists on subsite1 and put URL of subsite2's list Regards, Pratik Vyas | SharePoint Consultant | http://sharepointpratik.blogspot.com/
Free Windows Admin Tool Kit Click here and download it now
January 18th, 2011 8:44am

Thnaks for reply, I did as u explained, but the problem is it still showing the URL as old one. Please check this changing the list url using Sharepoint designer. http://blog.solien.com/archive/2009/05/19/changing-a-sharepoint-document-library-url.aspx Is there any option some thing like this to chnage subsite also, this is for List only.
January 18th, 2011 9:36am

Hi You said "I just want only to change the URL, Because the list does not belongs any more to subsite1", so where it is now? The list exact URL is not a part of list itself, it just shows the path of the specified list, so you can't change it without moving the list to other location. You can change the page name only (allitems.aspx), but it will not solve your requirement. If your list is in subsite1, you can't have it's URL containing subsite2. Try to move the list using list templates (save as with content, create from template). __________________________ Zorayr Zakaryan Lightning Tools
Free Windows Admin Tool Kit Click here and download it now
January 19th, 2011 4:49am

You can rename a list using the moveTo method of Rootfolder as follows (Using blocks removed for brevity) SPSite mySite = new SPSite("http://Foo/Sites/team2"); SPWeb myWeb = mySite.OpenWeb(); foreach (SPList list in myWeb.Lists) { if (list.RootFolder.Name == "ListNameToChange") list.RootFolder.MoveTo(list.RootFolder.Url.Replace("ListNameToChange", "NewListName")); } Aravind http://aravindrises.blogspot.com
January 19th, 2011 6:09am

Hi Thanks for your reply. The list is in the same position i,e; subsite1, i like to change the web address my requirement here is not to move the list but need to change the url ,So dont we have any other option to do this using sharepoint designer,object model or etc
Free Windows Admin Tool Kit Click here and download it now
January 19th, 2011 7:58am

Oh this is a bad idea. Lists have a heirarchy with their parent webs. Because of security. Changing the url does not change the security. You REALLY need to move the list from one sub web to the other using export/import commands. If you try and circumvent the way sharepoint does its navigation, you'll leave the list in an supportable state. And you wont be able to upgrade it to SP2010 some day. If the above MoveTo command actually copies the list from one web to the other, this would work and be ok. All the metadata of the list would reassociate under the new parent web. Thats if the MoveTo command does that. From the documentation, it appears it only works in the same web. Brian Bedard, MCTS - pioneeringsharepoint.blogspot.com - Twitter:@tigertoy
January 19th, 2011 8:38am

Without moving the List ,I dont think you can change the URL.Aravind http://aravindrises.blogspot.com
Free Windows Admin Tool Kit Click here and download it now
January 25th, 2011 2:28am

what is the MoveTo command?
August 21st, 2012 2:53pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics