GJSNeptune
[H]F Junkie
- Joined
- Mar 31, 2004
- Messages
- 12,372
I've always passed non-sensitive variables through URLs, but it can get very messy. I'm starting to revamp my solution so that URLs remain neat and simple while allowing certain content to still have static URLs.
Instead of links like:
Each subpage gets its own directory:
Supposing I wants static URLs to instead look something like:
How should I go about doing this? Is it simply a matter of parsing the text entered into the URL and checking it against titles in the database?
Instead of links like:
- http://www.domain.com/blog.php
- http://www.domain.com/blog.php?article=1
Each subpage gets its own directory:
- http://www.domain.com/blog
- http://www.domain.com/forum
- http://www.domain.com/fiction
Supposing I wants static URLs to instead look something like:
- http://www.domain.com/fiction/Title_Of_Fiction_Piece
How should I go about doing this? Is it simply a matter of parsing the text entered into the URL and checking it against titles in the database?