I am creating a wordpress theme from almost scratch and that i arrived at this bump within the road.

I've this URL: http://localhost/mysite.com/wordpress/portfolio/

That shows a webpage from the template type "portfolio" which i have defined.

I am attempting to give a search box / results on that page and my problem is this fact url:

http://localhost/mysite.com/wordpress/portfolio/?s=test&submit=Search

Doesn't show my portfolio page / template, but instead home page.

If a person can show me what's happening, I'd be thankful greatly. Please use technical particulars, I am managing a local copy of worpress on my small WAMP and anticipate delivering all of this on my small push. server eventually.

Thanks!

The format from the search engine results page could be customised by supplying a search.php in your theme. If the file isn't present, then WordPress uses the theme's index.php rather.