View previous topic :: View next topic |
Author |
Message |
Sigg3
Joined: 03 Jul 2003 Posts: 906 Location: Oslo, Norway
|
Posted: Wed Aug 04, 2004 2:25 pm Post subject: Rewrite dynamic PHP urls to resemble static html pages |
|
|
I was wondering about shorter URL's:
This script by stargeek.com rewrites dynamic PHP urls to resemble static html pages
Code: | <?php
function processURI() {
$request = explode("/",$_SERVER['REQUEST_URI']);
$count = count($request);
for ($i = 1 ; $i < $count ; $i++) {
$values["arg".$i] = $request[$i];
}
return $values;
}
?> |
I'm quite sure I've seen something about this in b2 somewhere, about mod_rewrite or something, but can't remember where or how.
Anyone up for a little digging? _________________ Sigg3.net - You know you're worth it! | b2 Cafelog Resource Center | Fight my BattleImp! |
|
Back to top |
|
 |
Cyberian75
Joined: 26 Sep 2002 Posts: 1285 Location: Oregon
|
|
Back to top |
|
 |
Sigg3
Joined: 03 Jul 2003 Posts: 906 Location: Oslo, Norway
|
|
Back to top |
|
 |
|