Hi, I want to access a site group using a short URL
here is my group location:
/groups/pisa/default.aspx
and I want to access it using:
/Pisa
I assume I have to create a PISA sub-directory off of the route and default.aspx but beyond this am stuck.
I have looked at various examples but can't see how to achieve this. Can anybody help?
Many thanks
Chris
Your assumption about the subdirectory is correct. To do the url mapping, you can create a new location in siteurls_override.config something like this:
<?xml version="1.0" ?><Overrides> <Override xpath="/SiteUrls/locations" mode="add"> <location name="pisa" path="/pisa/" themeDir="hubs"> <url name="pisa_default" path="" pattern="default.aspx" physicalPath="##themeDir##" vanity="{2}" page="grouplist.aspx" indexable="false" /> </location> </Override></Overrides>
Thanks Jeff, I tried your suggestion but am just getting a blank page - no header, nothing.
Many thanks, Chris
Have you recycled the app pool after adding the override file? You have to do that to get new overrides to apply. If that doesn't work are you going to /pisa/ or /pisa/default.aspx? Do you see a difference between those two urls?
Thanks Jeff I recycled and now whether I use /pisa/ or /pisa/default.aspx I get a list of groups whereas I want to be taken directly to the PISA group home page. Is that possible?
That is definitely what it would do, as that's what I read your original question as. If you want to redirect somewhere else, then you will need to change the override.
thank you
Copyright© 2008 Telligent Systems Inc. All rights reserved CommunityServer.com • Telligent.com