so, i have this one question about one function that use template_redirect action hook.. for example i'll use this url mysite.com/portfolio
that page/post don't exist, and i would like to skip that step.. i have image in my head, but dont know how to write it..
when requested url at end has portfolio redirect to template portfolio.php an archive template
can someone help? thanks in advance..
p.s. portfolio is custom post type...