Hi
I've been faffing around with mod_rewrite in virtual hosts for some time and i think i've got the hang of it now.
However, I now wonder if it is what i thought it was at the start and if it will do what i wanted.
I started out trying to replicate how the bbc website handles urls. I got it working fine with the main pages just by passing the title of the page and using mod_rewrite to apply the page name to my index.php.
That worked great but the issue then became article names. When you hover over article links on bbc news they come up as world-asia-43439 or something like that. I thought at first that this was a way to pass menu-submenu-articleid back to a php file but i'm not sure it's consistent.
I did get something like that working on my server again using mod_rewrite to split out the values and call the correct php file. I can't see how else it could work using mod_rewrite because if you click a related like that is not already under say world-asia you need those two parameters to be able to set your menu system correctly before displaying the new article.
I was fairly sure this was how sites like the bbc worked when i started out but now i'm not as confident. I mean i only need two rewrite rules to make it work but there's something about it - not sure what - that has made me lose confidence in it.
Is there another way to do these things that i don't know about? Or is mod_rewrite the only way with apache.
Any advice here would be very much appreciated.