I set up multiple websites (parked domain method) and the default website works perfectly. However, when I test the second website. The search function is not working, it always redirect into the current page without loading the search result(Eg. If I click search at the homepage it will go homepage or if I click search at the about us page then it will go to about us page)
I used Magento1.9.2.4 free template from template monster. This template uses cmsmart extension for doing the search. There are two kinds of search method. One is typing the keyword in the input text box and clicking the search button(This one works), the other is selecting the category type in the select box and then clicking the search button.(This one doesn't work)
The domain name we used is as following:
www.aricare.com.au(working one with the search) www.shavingclub.com.au(not working one with the search when selecting the category from the select box and then clicking the search button)
Is it a redirect issue? I tried .htaccess and index.php separately but still can't fix the issue. (everything works fine except the second website's ajax search function) -------------------------------------------------- ------- .htaccess setting
RewriteBase /welcome/ RewriteCond %{HTTP_HOST} ^(.*)shavingclub.com.au RewriteRule ^ - [E=MAGE_RUN_CODE:shavingclub] -------------------------------------------------- ------- index.php
switch($_SERVER['HTTP_HOST']) {
// shavingclub.com.au case 'shavingclub.com.au': case 'www.shavingclub.com.au': Mage::run('shavingclub', 'website'); break;
// Mainstore.com (default store) default: Mage::run($mageRunCode, $mageRunType); break; }
Will it be a parameter lost issue? When I search at the default website, the url will be sth like "http://www.aricare.com.au/welcome/catalogsearch/result/?search_categories[]=103&q=" However, when I search at the second website the above url is not showing in the browser.
PLZ HELP. Thank you in advance.