I just had someone recommend that instead of creating a virtual path like this…
“http://local.debbie/articles/postage-meters-can-save-you-money”
(Where the actual call is to: “http://local.debbie/articles.php?slug=postage-meters-can-save-you-money”)
That I consider creating an “articles” folder and place both my “article.php” template and a default “index.php” file in this new directory as well.
The advantage is that is some plays with the URL so it reads…
http://local.debbie/articles/
…then I don’t need my Mod_Rewrite to do anything, because Apache will default to “articles/index.php”
(Hope I gave enough info to make sense?!)
Anyways… Is there any downside to creating multiple folders which each have their own “index.php” inside them?!
His approach does seem simplier, but it is new to me, and conventional wisdom says I should on have ONE “index.php” in my website.
What do you think?
Debbie