Agrabah is supposed to be in the same realm as the EF, just…east of it. The way I used to think of it was that the entire world was called Fairy Tale Land but that most of our characters are from the Enchanted Forest (Europe, if you will) and Agrabah is simply on another continent.
Aladdin did say he made his way to the EF and then got swept up in the Curse.
[adrotate group="5"]
"He was a lot of things to me" "The only conclusion was love"