I have a domain, let's call it domain.com. And I have an addon domain, call it addon.com, whose files are hosted in a directory within domain.com. I successfully installed WordPress in that directory so it can be used as addon.com, and I am in the process of modifying the theme right now, but I stumbled upon a pretty big problem.
The problem I'm having is that all of the links that WordPress generates on addon.com go to domain.com/addon/ when they are supposed to go to addon.com. For example, clicking a category link while on addon.com goes to domain.com/addon/category/name instead of addon.com/category/name like it should. Furthermore, manually typing in addon.com/category/name results in a 500 internal server error.
The addon domain is properly set up via cPanel (my host support person even confirmed this for me). So why is this happening? And what do I need to do to fix it? Any help is greatly appreciated!