Two British journalists were recovering in Turkey on Thursday after being shot and beaten by rebel kidnappers while covering the Syrian conflict, The Times of London reported.

Times writer Anthony Loyd was shot twice in the leg while being held captive and photographer Jack Hill suffered a severe beating after trying to escape.

They were eventually freed under the orders of a local rebel commander, and managed to cross the border into Turkey on Wednesday after receiving treatment in a Syrian hospital, according to the paper.

The pair had spent several days reporting from the restive city of Aleppo and were returning to the Turkish border early Wednesday when they were taken.

They were around ten miles from the border when the car they were traveling in was forced to the side of the road by two cars, the Times said.

Loyd was bound to the back seat of a car, while Hill and a local guide were put in the trunk before being driven to a warehouse in the town of Tall Rifat.

Hill and the guide identified the kidnappers as the men entrusted with their safe passage to the border, and burst out of the trunk before overpowering a guard, reported the British publication.

Hill was recaptured and severely beaten while Loyd was shot in the legs to prevent him from escaping.

A commander from rebel group the Islamic Front, which is fighting against al-Qaeda-linked extremists, turned up to the warehouse and demanded the hostages be released.

Loyd, Hill and the guide crossed the border into Turkey late Wednesday after receiving treatment for their wounds, said the Times.