Infopath 2013 Publishing error - The following URL is not valid

In TechNet forums, I have seen too many questions on issues related to publishing InfoPath to SharePoint server 2013.

Here are some of steps to resolve the issue-

If you have publishing issue like "InfoPath cannot save the following form" then to troubleshoot use the above steps + the following


Also see these forum threads -