http://en.wikipedia.org/wiki/FODMAP
It basically removes, fructose, gluten, lactose, wheat, etc from your diet (see the link for a better desc). While the diet seems a bit of a difficult change, the mounting evidence towards its use for IBS sufferers is heartening. Personally I suffer from IBS-D which predates my chronic prostatitis / chronic pelvic pain syndrome symptoms. I am a few weeks into the diet. It is (of course), extremely had to keep on the diet, but I find with more time it becomes easier, not hard, as I figure out more and more tasty things to eat.
Also, as the diet calms down the gut over time, we are able to eat things that we were not able to before (such as corn). While corn may not have been a trigger for me, with my gut in a bad condition, it digests poorly. As things seem to get better, it is less of a trigger (as it is not a root trigger).
Restrictive treatments are hard. I find it easier to take my herbs, get my acupuncture, do my stretching and meditation, than I find it to NOT sit for so long, NOT have sex when I am tired (but turned on), and NOT eat some food I love (but clearly kill me... like icecream).
Substitution seems to be the key (or serious moderation). I won't quit eating snacks, but I can fill myself up with other snacks so I cheat less. Or I can take out one cookie and put the rest of the box out of sight.

Anyways, I recommend the diet for people especially with IBS-D. It may also directly or in-directly also have a positive effect on your chronic prostatitis / chronic pelvic pain syndrome as well. (Have a look at the food lists, and see how many of these are a trigger for your symptoms. More than 1/2 match up? Then maybe you need to give it some serious consideration at least. It can help you find out those other 50% that you just cannot figure out).