Which Badminton Lines Count in Singles and Doubles?
On a standard badminton court, singles rallies use the narrow sidelines and the full back boundary. Doubles rallies use the wide sidelines and that same back boundary. A doubles serve is different: its rear limit is the inner long service line.

Find the sidelines before serving
The inner pair of sidelines defines singles width; the outer pair defines doubles width. In a hall with several sports marked on the floor, ask someone to identify the badminton court rather than choosing lines by color alone.
Singles service is long and narrow
Serve into the diagonally opposite service court, beyond the short service line, within the singles sideline and up to the full back boundary. The short service line near the net remains the front limit of the receiving service court.
Doubles service is short and wide
The receiving service court extends to the doubles sideline, but its rear limit is the inner long service line for doubles. After the serve, the full back boundary applies again. A shuttle can therefore land legally during a rally in an area where a serve would have been long.
A boundary line belongs to its area
The BWF laws state that a line forms part of the area it defines. A shuttle landing on the relevant boundary is in. Do not confuse shuttle placement with the separate restrictions on players’ feet while serving. Adapted formats may use different arrangements; confirm them with the organizer.
Sources
BWF.
Related reading
Feather or Nylon Badminton Shuttles: Ask About the Session
Badminton Shuttle Speeds: Fast Is Not a Skill Level