Friendly URL's and subfolders with Root menu items

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
3/22/2008 8:16:10 AM
Gravatar
Total Posts 15

Friendly URL's and subfolders with Root menu items

Hi Joe,

I may have missed something, but I've been trying to add new pages and introduce a pseudo 'structure' with urlrewriting- e.g. 'Services' would be a page at the root level, but I'd like it to go to '~/services/default.aspx' (as it's a 'section' in itself).  The entry gets written  correctly when I add the new page, as the menu finds the new page, but because it is logically at the root level it seems to expect to find all the 'root' pages in the root folder, so images and links to other pages are all looking at ~/services/xxx as that's the current folder at the time (hope that makes sense).

This isn't a big deal because it's only habit that's led me down this path - I'm happy to keep everything logically in the root, and have services-menu.aspx etc. 

Do you know if there's a way to implement this kind of structure, and have the menu and everything else recognise the right location for links and images?

Many thanks,

Matt

3/22/2008 8:53:30 AM
Gravatar
Total Posts 18439

Re: Friendly URL's and subfolders with Root menu items

Hi,

No the friendly urls are not designed to reflect the hierarchy of the site. The hierarchy of the site is already well conveyed by the menu, sitemap and breadcrumbs.

While it might seem like a good idea to have the url reflect the position of the page in the site its actually not a good idea (at least in my experienced opinion).

The main reason is that it makes your site structure brittle if you do that. What I mean by that is that as soon as you decide to re-arrange the hierarchy now you have broken urls on google and in bookmarks. Its much better if the friendly url does not change when you move pages around, no broken urls and no broken bookmarks result. Urls are meant to be permanent locators of a page.

So in my opinion you should use friendly urls that are short and convey the content of the page not the position of the page within the site.

Of course its technically possible to implement url schemes that reflect page position, I have no plans to implement that myself.

Hope it helps,

Joe

3/22/2008 6:46:54 PM
Gravatar
Total Posts 15

Re: Friendly URL's and subfolders with Root menu items

Thanks Joe,

As I said, it's purely previous habit that made me think of a site 'section' as another folder (as it was convenient from an implementation point of view).  I realise now that with a CMS it's not a good way to go. 

Thanks again for the super quick reply!

Cheers,

Matt

You must sign in to post in the forums. This thread is closed to new posts.