Putting the 'role' back in role-playing games since 2002.
Donate to Codex
Good Old Games
  • Welcome to rpgcodex.net, a site dedicated to discussing computer based role-playing games in a free and open fashion. We're less strict than other forums, but please refer to the rules.

    "This message is awaiting moderator approval": All new users must pass through our moderation queue before they will be able to post normally. Until your account has "passed" your posts will only be visible to yourself (and moderators) until they are approved. Give us a week to get around to approving / deleting / ignoring your mundane opinion on crap before hassling us about it. Once you have passed the moderation period (think of it as a test), you will be able to post normally, just like all the other retards.

A question about URL preference

What kind of URLs tickle your fancy?

  • index.php?module=content&id=67 / index.php?module=news&id=1428

    Votes: 0 0.0%
  • content.php?id=67 / archives.php?id=1428

    Votes: 0 0.0%
  • I don't care

    Votes: 0 0.0%
  • What's a URL?

    Votes: 0 0.0%

  • Total voters
    0

obediah

Erudite
Joined
Jan 31, 2005
Messages
5,051
Calis must have read an MVC book?

With his schema, I'd definitely use rewrite to prettyify the standard args so something like

codex.com/station/general/index.php?custom=junk

same info, but looks better.

Other than that the only issue I can think of is that search engines stop at ? so if that matters use rewrite there too.

I'd probably pick Calis's style but with the fake directories for mandatory arguments.
 

Calis

Pensionado
Joined
Jun 15, 2002
Messages
1,834
I don't know what an MVC book is, but I googled it, and yeah, separation between data model and interface is nice.
I just looked at my own code with eyes that are a couple of years older than when I wrote the current stuff and realized: "this is crap. I want to make something that other programmers can read without ridiculing me. Might as well get DarkUnderlord in on it, too."

The thing is with those URLs, we want to make something that runs on pretty much any webserver with PHP and some kind of database (we're only gonna include a MySQL module at first, of course). Right now I'm leaning towards: "build a class or function that handles link building. Depending on what's installed on the webserver (Apache rewriterules, for instance) have it behave differently."
 

As an Amazon Associate, rpgcodex.net earns from qualifying purchases.
Back
Top Bottom