SiteURLs

rated by 0 users
Answered (Not Verified) This post has 0 verified answers | 6 Replies | 2 Followers

Top 500 Contributor
99 Posts
Points 1,470
chriswells posted on Mon, Oct 27 2008 7:26 AM

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

  • | Post Points: 20

All Replies

Top 50 Contributor
325 Posts
Points 4,860
Partners
Suggested by Alex Crome

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>

--
--Jeff (ATGi)
  • | Post Points: 20
Top 500 Contributor
99 Posts
Points 1,470

Thanks Jeff,  I tried your suggestion but am just getting a blank page - no header, nothing.

 

Many thanks, Chris

  • | Post Points: 20
Top 50 Contributor
325 Posts
Points 4,860
Partners
jeffesp replied on Mon, Oct 27 2008 10:35 AM

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?

--
--Jeff (ATGi)
  • | Post Points: 20
Top 500 Contributor
99 Posts
Points 1,470

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?

Many  thanks

Chris

  • | Post Points: 20
Top 50 Contributor
325 Posts
Points 4,860
Partners
jeffesp replied on Mon, Oct 27 2008 12:24 PM

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.

--
--Jeff (ATGi)
  • | Post Points: 20
Top 500 Contributor
99 Posts
Points 1,470

thank you

  • | Post Points: 5
Page 1 of 1 (7 items) | RSS
Powered by Community Server (Commercial Edition), by Telligent Systems

Copyright© 2008 Telligent Systems Inc. All rights reserved
CommunityServer.com  •  Telligent.com