In your namelist.input file, under the &time_control section, add the following line:
history_outname = 'path_of_your_choice/directory_of_your_choice/wrfout_d<domain>_<date>'
Make sure to leave the <domain> and <date> exactly as is indicated above. This will make sure to do this for all domains and all dates.
history_outname = 'path_of_your_choice/directory_of_your_choice/wrfout_d<domain>_<date>'
Make sure to leave the <domain> and <date> exactly as is indicated above. This will make sure to do this for all domains and all dates.