The blue-chip FTSE 100 index <.FTSE> closed flat in percentage terms at 7,188.82 points, after ending marginally higher in the previous session. In contrast, the pan-European STOXX 600 index <.STOXX> was up 0.3 percent higher in a choppy session.

Britain's mid cap <.FTMC> index, however, ended at a fresh record closing level, up 0.3 percent. Housebuilder Redrow (>> Redrow plc) was among the biggest gainers on the FTSE 250, up 4 percent after posting a rise in first half profit.

"We have had a BUY recommendation on (Redrow) for a while and we stick with that both for absolute potential gain and also as part of our wider view that the midcap house builders offer much better value than the larger caps," Robin Hardy, analyst at Shore Capital Markets, said in a note.

Blue chip peers Persimmon (>> Persimmon plc), Taylor Wimpey (>> Taylor Wimpey plc) and Barratt Developments (>> Barratt Developments Plc) were also among the biggest risers on the FTSE 100, all up between 2.3 percent to 3 percent.

However, commodity-linked stocks fell. After rallying earlier in the session, Rio Tinto (>> Rio Tinto plc) ended 1.7 percent lower, though the world's No. 2 iron ore miner beat profit forecasts on the back of cost-cutting and a strong recovery in iron ore prices and said it would pay a bigger-than-expected annual dividend.

"Mining companies are price-takers and have no control over commodity markets, but Rio has made ground by cutting cash costs and scaling back the dividend," Hargreaves Lansdown analyst Laith Khalaf said.

Rio shares have more than doubled since early 2016, and analysts cited some profit-taking on Wednesday after Rio's shares touched their highest level in four years earlier in the month.

The UK mining index <.FTNMX1770> fell 1.6 percent, with BHP Billiton (>> BHP Billiton plc) and Glencore (>> Glencore PLC) dropping 3.4 percent and 1.8 percent respectively.

Gains were also negated by weaker energy stocks. The UK oil and gas index <.FTNMX0530> fell 1.3 percent after oil prices extended Tuesday's falls earlier in the session following a massive increase in U.S. fuel inventories and a slump in Chinese demand. [O/R]

"Energy shares have been weighed on by a surprisingly large U.S. API oil inventory build, stoking fears that rising U.S. shale production will outweigh OPEC cuts deigned to rebalance the global oil market," Accendo Markets analyst Henry Croft said.

Shares in Royal Dutch Shell and BP (>> BP plc) fell 1.5 percent and 0.3 percent respectively, while mid-cap Tullow Oil (>> Tullow Oil plc) was down 5.4 percent.

(Reporting by Kit Rees and Atul Prakash; Editing by Gareth Jones)

By Kit Rees and Atul Prakash