Friendly URLs for user control based output Options
acullen
Posted: Wednesday, March 05, 2008 5:40:00 PM

Rank: Devotee

Joined: 4/13/2007
Posts: 57
Location: Arlington, VA
Hi, all-

I have a site where I need to create profile pages for various schools ad school districts. I have a custom user control that grabs the data required, but I'd like each school and district to have a unique (and friendly) URL for bookmarking purposes. For instance, I'd love to have a url like "www.mydomain.com/schools/[schoolID].aspx", which then takes the schoolID from the page name and feeds it to my user control. Any ideas on how to do this in umbraco?

Thanks!
Andrew
neehouse
Posted: Wednesday, March 05, 2008 6:34:40 PM

Rank: Umbracoholic

Joined: 7/20/2006
Posts: 1,069
Location: Charleston, West Virginia, United States
In umbraco 3.0, you can use URL rewriting to handle this type of request.

the config for this is in the config folder, and information on the rewrite itself is at http://urlrewriting.net/en/Default.aspx

On that site is a PDF that explains the configuration structure and details of how to use the module.

• 2007/2008 MVP • 2008/2009 MVP • Core Developer • Certified Professional Level I & II •
neehouse
Posted: Wednesday, March 05, 2008 6:35:42 PM

Rank: Umbracoholic

Joined: 7/20/2006
Posts: 1,069
Location: Charleston, West Virginia, United States
Here is a link to the PDF document, as it is not very obvious at first glance.

• 2007/2008 MVP • 2008/2009 MVP • Core Developer • Certified Professional Level I & II •
SoerenS
Posted: Wednesday, March 05, 2008 6:46:07 PM

Rank: Fanatic

Joined: 7/25/2006
Posts: 396
Location: Silkeborg, Denmark
You can find the URL rewrite solution described in this thread:
[url]http://forum.umbraco.org/19500[url]

Brug for råd til hvordan du driver en god webshop? / Need advice on how to run an effective webshop?
acullen
Posted: Wednesday, March 05, 2008 6:49:30 PM

Rank: Devotee

Joined: 4/13/2007
Posts: 57
Location: Arlington, VA
As usual, helpful and quick. Thanks, guys!

Andrew
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.