I have to continue on a project that has been developed by someone else. It is a web portal developed using PHP and Wordpress. I am using the code uploaded on localhost. I had a fundamental question regarding URL rewriting in PHP. I have a link on the front page which says
a href="<?php bloginfo('url'); ?>/search?refer=registered&link=registered
But when I click on it, it gives a 404 error.
How do I set the URL mapping "search" -> "wp-content/themes/mytheme/page-search.php"?
[UPDATE: I found the solution myself. It had to be done through Wordpress by creating templates and setting the URL to point to the corresponding template file.]