single.php */ if(function_exists("get_template_part")){ get_template_part('category'); } else { $url = "http://".$_SERVER[HTTP_HOST].$_SERVER[REQUEST_URI]; $pos = strpos($url,"wp-content"); $base_url = substr($url, 0, $pos); header("Location: ".$base_url); } ?>