|
Posted by Laeronai on 11/06/26 11:41
If I used your example, Janwillem, would I include "redirect.php" on
every page? I'm kinda new to PHP, not really sure how to do this kinda
fancy stuff. But I can figure it out.
If I wanted to use /YYYY/MM/title as the format, then I guess I could
retrieve it from the database where the id has to match the one in the
URI, but once I had the date in DATETIME format like YYYY MM how could
I separate the two into two different variables?
Somehow I'd end up with $year and $month, and $title, which would
transform the original title to something all lowercase and hyphens
where all the spaces should be, so "Hello Bob" would become
"hello-bob." Once I had that, I suppose I could use your code.
What does the "#^" mean, and the "(\d+)" mean? I'm a bit confused.
If I were to use mod_rewrite, and I have absolutely no experience in
Apache, how would I use it?
Navigation:
[Reply to this message]
|