So this has never worked with discourse.
The easiest solution is to run discourse on its own server. If you don’t want that, search here for… This Set up Discourse on a server with existing Apache sites
And if you want to hire someone to solve your discourse problems, I’m available, though I’m mostly on vacation this week.