Google automatically redirects to the Google's country domain depending on your IP address. If you are using Google search through a proxy or if you are traveling, you might have experienced this.
Solution 1: Always get results from Google.com
One way to stop Google country redirect is to visit this link: http://www.google.com/ncr. This sets a cookie in your browser announcing Google not to redirect. Now you are getting results from google.com. But this solution fails if you remove cookies in Firefox. And the other problem is that you’ll not get country-specific search features.
Solution 2: Get results from your favorite Google country domain
Firefox’s default search bar gets its configuration options (what search engine to use, what parameters to pass, etc) from XML files located in ’searchplugins’ directory in Firefox’s default directory. If you are on a Windows system this most probably be ‘C:\Program Files\Mozilla Firefox\searchplugins’. There’s an XML file for Google called ‘google.xml’. Following is the content of that file.
XML tags hare are self-explanatory. First copy google.xml and make a new one. Lets’ call it ‘google.lk.xml’ for examples. Then Edit ‘ShortName’, tag and rename it to something else. Let’s call is “Google.lk”. Then there are two ‘Url’ tags. Leave the first ‘Url’ tag as it is since it’s used to get search suggestions. In the second tag change template attribute to template="http://www.google.lk/search".
Google Search UTF-8 http://www.google.com/
Change http://www.google.com/ to http://www.google.lk within '<SearchForm>' tags. This specifies the page to display if you click on the magnifying glass icon, at the left hand corner of the search bar, without any search terms.
After these changes are made, new google.lk.xml file should look like follows.
If you are in a different country than Sri Lanka, use your country’s Google domain instead of google.lk.
Google LK Google Search UTF-8 http://www.google.lk/
Finally, you have to select “Google.lk” from the search engine list in Firefox's search bar (Click on the small traigle next to search engine logo)