I need to create a custom page. while searching for xyz.com, customer should get a page to select their region. like USA, Australia, UAE. and if the customer clicks USA the page should redirect to another URL. same for Australia it should go to xyz.au, xyz.ae like that. How can i make such page with all changes.
Always backup themes and files before making changes.
Either make an alternate search template and make sure all search boxes go to that view.
Or just duplicate the current search template to a backup and customize it do display the following instead of normal search results by commenting out the bulk of the search template, or some other UI affordance.
Then just slap in the links in place of the normal content.
Some themes also have a modal section you can put such content into.
If you need to pass the search term you will need to build that from the search object as there is no object giving the current url with url parameters.