“The following URL is not valid…” when publishing infopath forms

I recently hit this issue where I could not publish my infopath form to my Sharepoint site. This was a strange one as all configuration was correct and my site was available. I then realised that I need to have atleast one site at the root. I only sites under the /sites/ folder. I then created a site at the root and I could publish my infopath forms!

Cheers,

D