I'm new to PHP, and i built my first class template. Basicly it switches content by get variables main and title
Main is array of mostly main titles like Index, News, (i haven't reached to contact yes, couse i don't know how to include file, depending on get) but that's the first part.
Now when user reaches for index (or just visits the site) another menu is set, which is array of index Titles, and Paths.
Now ugly part is how can i change url in top, from ?main=news to just /news, and let's say ?main=news?title=My news title to /news/mynewstitle
Is this maybe .htaccess question?