Ingmar, I had to modify the website back to it’s original form so the search would work properly so as it currently stands, it’s not performing as above. Let me see if I can explain my issue/goal in better detail.
I am using a php redirect script on the index.php page so for example, when someone accesses example.com/index.php, the script checks to see if they are using a mobile device or a computer. If they are using a mobile device, it sends the user to their mobile website located at m.example.com. If they are using a computer, it forwards them to example.com/index2.php where the expression engine site home page is residing. Using the script I am using, I couldn’t have a computer user redirect to index.php because the script would keep redirecting and not stop. (For the record, I’m not a php expert, I’m using a generic script.) So I changed all the path’s and configuration files to have EE recognize index2.php as the main home page of the website. Everything works great doing this, except when I try to run a search, after submitting a keyword and pressing go, it sends me back to index.php, not index2.php. Of course when it does this, it then triggers the mobile detect/redirect, which then sends me to index2.php and never gives me search results.
My goal is to get the search to not send me to index.php, but instead use index2.php if it needs it to populate the results. I hope this helps in understanding the issue. I appreciate your help.