12V Accessory for turn on, but use 12V Constant directly to the battery via a low gauge (large diameter) wire WITH A FUSE as close to the battery as you can make it, no more then 12" away.
ALSO,
use the FRONT speakers as leads for the subwoofer, not the REAR. The front is much more evenly EQ'd compared to the rear, from the O.E. factory head unit. IF you use the rear, you will get substandard bass output from your subwoofer, and you'll likely not get what you paid for. A better signal comes from the front speaker outputs.