I am hoping to achieve some kind of cms on my own. I see i can catch Apache enviromental variables, known as PATH_INFO, so this way i can make dynamic sections on my site (just like joomla does).
for example:
stackoverflow.com/index.php/section1/article22
Currently i'm developing a function to find out wich section and article was requested, by doing this:
$url_seccion = $_SERVER['PATH_INFO'];
$secciones_array = array_values(array_filter(explode('/', $url_seccion)));
This part is working fine, the issue i'm having is that all relative paths i had now are broken. Can someone explain me why is this happening and what can i do to solve it? (Please don't tell me i have to use absolute paths...)