Google Inc. will shift its search engine for China off the mainland but won't shut it down altogether, and it will maintain other operations in the country. It's an attempt to balance its stance against censorship with its desire to profit from an explosively growing Internet market.
On Monday afternoon, visitors to Google.cn were being redirected to Google's Chinese-language service based in Hong Kong. The page said, according to a Google translation, "Welcome to Google Search in China's new home."
Google's compromise could resolve a 2 1/2-month impasse pitting the world's most powerful Internet company against the government of the world's most populous country.
Google plans to keep its engineering and sales offices in China so it can keep a technological toehold in the country and continue to sell ads for the Chinese-language version of its search engine in the U.S.
But Google is still taking a risk. The revolt against censorship threatens to crimp Google's growth, particularly if taking the stand prompts the Chinese government to retaliate by making it more difficult for the company to do business in the country. The ruling party, for instance, could use its filters to block people on China's mainland from connecting with Google's Hong Kong-based service.
On Jan. 12 the search company vowed to shake loose from government-imposed restraints on the Internet after determining that Google, along with more than 20 other U.S. companies, had been targeted in a wave of computer hacking attacks originating from China.
The attackers also tried to pry into the e-mail of human rights activists opposed to the ruling party's policies, according to Google. That raised the specter that the Chinese government or its agents played a role in the espionage, although Google never made a direct accusation.
Despite its outrage, Google had hoped to persuade the Chinese government to let it run a search engine that could deliver unrestricted results. Failing that, Google wanted to find enough common ground to maintain its research center and sales team in the country.
It's unclear whether Google's attempt to skirt China's censorship rules by using Hong Kong as a back door will cause more acrimony.
"Figuring out how to make good on our promise to stop censoring search on Google.cn has been hard," David Drummond, Google's top lawyer, wrote in a Monday blog posting. "We want as many people in the world as possible to have access to our services, including users in mainland China, yet the Chinese government has been crystal clear throughout our discussions that self-censorship is a non-negotiable legal requirement."
Drummond said it's still possible that Google may pull some of its sales force out of China if the government blocks access to the Hong Kong search engine. About 700 of Google's 20,000 employees are in China.
The prospects for a truce seemed remote at times because China's communist leaders publicly did little to conceal their indignation at Google's defiance.
But many analysts believed China didn't want to lose Google completely, possibly because it might be interpreted as a setback in the government's efforts to foster more innovation.
For its part, Google wanted to stay in China so it could keep hiring computer programmers and peddling ads in the country. Google also believes its presence in China could lead to looser rules on censorship that would allow it to revive its search engine in the country eventually.
If the compromise approach works, it could ease the financial pain of Google's stand against censorship.
As it was, China accounted for a small fraction of Google's $24 billion in annual revenue. Analysts estimate Google brought in $250 million to $600 million from China. It's unclear how much of that amount flowed exclusively from Google.cn.
But stock market analysts have worried about the long-term consequences of Google's actions in China. Opportunities there figure to grow faster than in the U.S. or Europe. Even if Google remained a distant second in search behind the homegrown Baidu.com Inc. in China, Google could still prosper as more Internet ads are served up in the country.
Investors, not surprisingly, have seemed to be more interested in profit than principles. Google shares have slipped 5 percent since its Jan. 12 warning about a possible shutdown in China. The technology-driven Nasdaq composite stock index has climbed about 5 percent during the same span.
China's financial promise is the main reason other technology companies, including Microsoft Corp., seem intent on staying in China. If Google had exited the country completely, Microsoft and other technology companies might have an easier time recruiting China's best engineers -- a factor that motivated Google to keep its research center there.
Yahoo Inc. closed its offices in China in 2005 when it sold its business there to Alibaba Group, but remains a major player in the market through a 39 percent stake it holds in Alibaba.
Google decided to set up a search engine inside China in 2006, even though that meant complying with rules requiring the omission of search results the government deemed subversive or pornographic. The complicity sparked widespread criticism among Google supporters, including some of its own employees, who believed the company was violating its "Don't Be Evil" motto.
But China has been one of the few markets in which Google doesn't dominate. The prospects of Google's search engine falling out of the picture have led investors to bet that Baidu will become an even more dominant force. Baidu shares have soared about 50 percent since Google raised the possibility of leaving China.
Even if Google.cn had been shuttered entirely, the Chinese population might have still been able to do some Internet searching through Google. That's because the company also has a Chinese-language version of its search engine on its U.S. site, Google.com. But that might not always be reachable from China if the government uses its filters to block access, as it has done in the past.
AP Technology Writer Jessica Mintz in Seattle contributed to this report.