I worked at a company for over a year and resigned a few months ago as I was moving to another city. I gave a two month notice and left in good terms with everyone in the company. The manager at the time told me that I would be able to get my job back if/when I returned.
I am now returning and I saw that the company I was with is hiring for my position. I contacted a coworker but I was informed that the manager had left and that that coworker was now the manager. I asked about the available positions and was told that they were not hiring for my position because they didn't need anyone to take on any more hours. I keep seeing new job postings for my position, even days after the conversation, so it looks like they're keeping the job from me.
There's not a valid reason for me not to get the job back, but that's not even the problem. The problem is that I am being told, flat out, that they are not hiring for my position. I have been trying to find out what my options are, and see if I can find any information from other people with a similar problem, but I have not seen anything, not even in Workplace.SE, so I figured I would ask.
Is there anything I can do at all? Is it illegal? Do I have any legal recourse here, or any way to try and get the job (even if the one manager doesn't want me back, I'd still like to have the job as I have good rapport with the entire team)?