Tell me more ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I am currently helping redesign a poorly built website that suffered with a case of PHP spaghetti.

In an attempt to structure the site I have the following tree (apologies for the length):

http://www.domain.co.uk     -   Root Directory
-   /

-   /our-service
-   /our-service/pricing
-   /our-service/mobile

-   /search
-   /search/results
-   /search/results/<page_num>

-   /resources/announcements
-   /resources/competitions
-   /resources/email-archive/<email_num>
-   /resources/sitemap

-   /contact
-   /contact/advertise
-   /contact/support

-   /legal/terms
-   /legal/privacy

-   /<username>
-   /<username>/reviews
-   /<username>/reviews/<review_id>

http://my.domain.co.uk      -   User Account Area
-   /instructor

-   /instructor/account
-   /instructor/account/activate/<hash>
-   /instructor/account/password
-   /instructor/account/email
-   /instructor/account/contact
-   /instructor/account/status
-   /instructor/account/close

-   /instructor/billing

-   /instructor/reviews
-   /instructor/reviews/disputes
-   /instructor/reviews/ratings

-   /student/account
-   /student/account/activate/<hash>
-   /student/account/password
-   /student/account/email
-   /student/account/contact
-   /student/account/status

-   /student/review
-   /student/review/past

-   /student/theory
-   /student/theory/new
-   /student/theory/results

-   /logout

1) My first real question is if anyone is able to spot anything that may cause an issue further down the line using this structure? Obviously /<usernames> will be checked against a reserved list to prevent any issues in that sense.

2) In terms of error handling I have seen several methods used on websites, one being url based. For example, an error with a username/password could be displayed using /login?error=mismatch. Is this a better approach than doing things invisibly behind the scenes or is there no real advantage?

3) Finally, the site has two parts to its registration (student / instructor) with the student having a single page to complete, and the instructor a multi-page form. I can't figure what the best method would be to implement it into this structure.

share|improve this question
Can I create a username contact? – Peter Taylor Aug 25 '11 at 12:47
No, all usernames will be validated prior to registration, part of the validation will ensure reserved words cannot be chosen – lethalMango Aug 25 '11 at 12:48

closed as too localized by danlefree Feb 14 at 22:05

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.

Browse other questions tagged or ask your own question.