Pretty URLs...

Hi all,

one thing that bothered me with aC and still bother me with ProjectPier is that the URLs that are not pretty at all. :)
Of course, that doesn't stop me from using it but having http://localhost/projects/MyProject/messages/241/
would be a lot nicer than http://localhost/ProjectPier/index.php?c=message&a=view&id=4&active_project=1
or
http://localhost/users/MyCompany/MyUser/
instead of
http://localhost/ProjectPier/index.php?c=user&a=card&active_project=1&id=1
You know what I mean... (it's probably on your list already)

Besides that, I'm fine though.
Thanks for your effort! I'm trying to figure out if I could give a hand to that project.

Tim

Good point Tim, definitely more elegant, though having permalinks might depend on us finding a htaccess guru with time to spare. PP can survive without it though, especially since the public shoudln't really be getting links into PP instances anyway, so they don't really have to be all that memorable.

If you know about permalinks and want to take a stab at it then go for it, if you can make it work in the framework then that would be great. If you just want to help in general then let us know and we can point you to some manual pages that would help out the noobs with the basics.

I'll need some time to understand the whole link structure and the different types of links (some are for users, some are for project-related items...) and see what I can do as for httpd configuration.
Technically, it's not complicated. The hard part is not to miss any kind of link :)

As for Roland's question regarding webserver, I don't know. I know that it can be activated on Apache easily, but I haven't tried any other webserver honestly.

In any case, if it works well with Apache first, that'd be good. We'll start from there...

Tim

by looking more closely at the URLs, I realize that one thing that wouldn't be possible immediately would be having links like:
http://localhost/users/MyCompany/MyUser/
for the reason that users, companies and projects don't have a URL-friendly name by default.
So, instead, that would be
http://localhost/users/12305/

I suppose that for the users it could simply be the login. But company and project names would need to be made URL-friendly in some way, but that opens the possibility to conflicts and such...

Ultimately, the treatment of the request would have to incorporate not the ID but that URL-friendly name.
Hum...

I guess I'll stick to IDs. I see that 37signals' products all keep ID, so it's probably not such a bad idea! :)

Tim

I know that Apache can do this (we do this here on pp.org too). Do other servers also support this and do they have another syntax for that?

If this does't mean to produce a different PP version for different server types, this seems to be a good thing.

(Just my 0.02 EUR)

I know that in WP land, the 'lighty' server setup (i think that means lighttp) doesn't support htaccess and so they can't turn on the 'pretty urls' feature. By default the pretty url's are off though, so people have to consciously change the setting to break their site.

i agree this would be a nice feature.

Hi Michael,

the good news is that I made a patch for that:
http://www.projectpier.org/node/760

It works in Apache only as far as I know but that's one of the requirements of PP, so I can't feel bad about it. :)

TheWalrus tested and reviewed the patch so it should be included in a future release.

Tim