Sólo es una condición...
index.php?go=secc&cat=categoria1&sub=subcategoria1
Un ejemplo tonto:
Me salto la parte de seguridad de las variables recogidas por $_GET, ya eso es cuestión de cada cual.
Código PHP:
if(isset($_GET['cat']) and ! isset($_GET['sub']))
{
switch ($_GET['cat'])
{
case 1: echo'<title>categoria 1</title>'; break;
case 2: echo'<title>categoria 2</title>'; break;
case 3: echo'<title>categoria 3</title>'; break;
}
}
elseif( isset($_GET['cat']) and isset($_GET['sub']) ){
switch ($_GET['sub'])
{
case 1: echo'<title>subcategoria 1</title>'; break;
case 2: echo'<title>subcategoria 2</title>'; break;
case 3: echo'<title>subcategoria 3</title>'; break;
}
}