Generic Imitrex is used for the treatment of migraine headaches with or without aura (eg, flashing lights, wavy lines, dark spots). An aura is a strange feeling or visual disturbance that warns you of an attack. It is not used to prevent migraines.
Generic Neurontin is used for treating seizures associated with epilepsy. It may also be used for treating nerve pain associated with herpes zoster (shingles) infection (postherpetic neuralgia).