I am tired of making script based on pages and all. I do not want to do stuffs old ways. I want to learn OOP based on url. I know how to use .htacces for url masking and rewrite rule. But the thing is that when I forwarded all queries to a PHP page, I had to use switch case statement to include files. Like if query is p=profile then I need to include profile.php file either manually or by function. But I do not want do this type of things. I want to learn professional PHP so I can create webapps like wordpress and elgg and all. I've tried finding online tutorials about it but it didn't work for me.
I hope that at least one person will help me correct way.