ISLAMABAD/NEW DELHI (Reuters) - Pakistan reopened its airspace to international civil aviation on Tuesday after months of restrictions imposed because of clashes with India, which forced long detours that cost airlines millions of dollars.

FILE PHOTO: An arial view of the airplane hub at the airport in Karachi, Pakistan February 3, 2017. REUTERS/Caren Firouz/File Photo

“Pakistan airspace is open for all types of civil traffic on published ATS (Air Traffic Service) routes,” according to a so-called Notice to Airmen (NOTAM) published on the Pakistan Civil Aviation Authority’s website shortly after midnight.

Pakistan lies on an important aviation corridor, and the decision offers a welcome break for international airlines.

The restrictions, imposed in February, affected hundreds of commercial and cargo flights each day, adding flight time for passengers and fuel costs for airlines.

India’s ministry of civil aviation said there were now no restrictions on airspace in either country.

“Flights have started using the closed air routes, bringing a significant relief for airlines,” it said.

Pakistan closed its airspace after an attack by a Pakistan-based militant group in Indian-controlled Kashmir led to clashes between the nuclear-armed powers.

Each country carried out air strikes on the other’s territory and warplanes fought a dogfight above the disputed Kashmir region in which an Indian fighter jet was shot down.

Partial operations at Pakistani airports resumed once the immediate crisis passed but restrictions continued to affect many international carriers.

Flights between Europe and Southeast Asia were forced further south, which added as much as 450 km (280 miles) to some journeys and forced the cancellation of some routes.

“Pakistan being open again makes the traditional and preferred Europe-Asia route through Afghanistan, Pakistan and onwards to India available again, and means that city pairs abandoned after the February shutdown will likely be restarted,” OPSGROUP, which provides guidance to operators, said in a note.

Indian operators were badly affected by the shutdown. An Air India spokesman said the company would take about a week to rework its schedule and come up with a plan to operate its flights over Pakistan.

Air India suffered losses of 4.91 billion rupees ($71.6 million), India’s aviation minister, Hardeep Singh Puri, told lawmakers this month.

IndiGo Airlines, India’s largest by market share and controlled by Interglobe Aviation Ltd, incurred a loss of 251 million rupees due to the closure of the Pakistani airspace, while Spicejet Ltd incurred losses of 307.3 million rupees, Puri said.

An IndiGo spokeswoman said that IndiGo flights flying via Pakistan “will operate as normal after all regulatory clearances by the concerned authorities”.

Representatives of Spicejet did not respond to calls and messages seeking comment.

Pakistan’s announcement came hours after United Airlines Holdings Inc said it was extending the suspension of its flights from the United States to Delhi and Mumbai in India until Oct. 26, citing the continued Pakistani restriction.

The dropping of the restriction will allow Pakistan, which this month agreed the terms of a $6 billion bailout from the International Monetary Fund, to collect overflight fees. ($1 = 68.5830 Indian rupees)