Which state do you live in? In Indiana (where I am from) you are required to have a permit to take a handgun off your property for any reason other than repairs or to and from a dealer.
They don't mention anything about rifles however.
There is a myth going around (atleast in Indiana) that you are fine as long as have the handgun in a locked case in your trunk sepperate from any ammo, however the actual law does not state this.
Check the NRA website to read further about your state laws here:
Stay safe and Legal