PDA

View Full Version : Multiple SE Friendly URLS



incka
02-06-2004, 12:49 PM
How would I make SE friendly URLs like this:

www.domain.com/period/artist/work

I know Chris does something like this on online-literature.com

I want to make the site in less than 10 php/html files, and have period and artist as pages too.

So how would I do it?

Mike
02-06-2004, 12:53 PM
I don't get the difference between that and what your using on your AWS site. Explain more?

incka
02-06-2004, 01:14 PM
This is nothing to do with AWS.

I'm saying how would you make a php script that gets database info for /period/ but also can get info from another database for /period/artist/ and another database for /period/artist/work.

Chris
02-06-2004, 01:38 PM
I have a file called "processor.php" that is called. It scans the URL string to figure out what information needs to be pulled and then it includes the appropriate file.

incka
02-07-2004, 06:13 AM
Sounds a bit complicated... Um, anyone know where I can find a tutorial about this?

Chris
02-07-2004, 08:05 AM
Its not that complicated. I talk about it in my SE friendly URLs article.

Basically you explode the URL string into an array and then count it. If there is 1 variable I load an author page. If there are two variables I load a book page, if there are three variables I load a chapter page.

incka
02-07-2004, 08:44 AM
I'll experiment with it... Thanks Chris:)