Certified GKH Gardening Expert
Rosemary doesn't typically need fertilizer. If you think it looks poorly and needs some pepping up you could give it fish emulsion at 1/2 strength or just an all purpose fertilizer.
The palm tree fertilizer has specific nutrients for palm tree care so I would't recommend using it. The article below mentions fertilizer for herbs in the last full paragraph.