Hi, i'm creating a simple cms system to manage a small site. The problem I'm having is getting the url structure to work with the site. I thought I would post here as many of you users i'm sure would have encountered similar problems. I will take you through each step I made while encountering problems. First I had:
/section/cat-name-id/
/section/cat-name-id/page-title-id/
/section/page-title-id/
I then needed a multiple page system so I could display comments and it changed further to:
/section/cat-name-id/
/section/cat-name-id/page/
/section/cat-name-id/page-title-id/
/section/cat-name-id/page-title-id/page/
/section/page-title-id/
/section/page-title-id/page/
My problem lies that I wish to have pages in the root and there is no way to distinguish between a category and a page so I next went for:
/section/cat-name-id/
/section/cat-name-id/page/
/section/cat-name-id/page-title-id.htm
/section/cat-name-id/page-title-id/page.htm
/section/page-title-id.htm
/section/page-title-id/page.htm
But it's not the best solution in terms of usability (1 because it has the id in the titles and I can't see how I can get rid of this - although I've seen other CMS systems to this and would appreciate if someone could share how). The second problem is not as serious but still an issue I feel, say if a user gets rid of the page.htm part then it would read /section/page-title-id/ or /section/cat-name-id/page-title-id/ and this would not work.
Appreciate if anyone has a better solution. Thanks
/section/cat-name-id/
/section/cat-name-id/page-title-id/
/section/page-title-id/
I then needed a multiple page system so I could display comments and it changed further to:
/section/cat-name-id/
/section/cat-name-id/page/
/section/cat-name-id/page-title-id/
/section/cat-name-id/page-title-id/page/
/section/page-title-id/
/section/page-title-id/page/
My problem lies that I wish to have pages in the root and there is no way to distinguish between a category and a page so I next went for:
/section/cat-name-id/
/section/cat-name-id/page/
/section/cat-name-id/page-title-id.htm
/section/cat-name-id/page-title-id/page.htm
/section/page-title-id.htm
/section/page-title-id/page.htm
But it's not the best solution in terms of usability (1 because it has the id in the titles and I can't see how I can get rid of this - although I've seen other CMS systems to this and would appreciate if someone could share how). The second problem is not as serious but still an issue I feel, say if a user gets rid of the page.htm part then it would read /section/page-title-id/ or /section/cat-name-id/page-title-id/ and this would not work.
Appreciate if anyone has a better solution. Thanks