I have recently changed our url from http ://servername to http ://urlname I changed the AAM to reflect this as well as alter the binding in IIS
It seems to work fine but when ever I create a new publishing page site I receive the following error -
at Microsoft.SharePoint.Library.SPRequestInternalClass.GetWebUrl(Guid gWebId, String bstrSiteUrl)
If I revert the AAM back it works fine.
It seems to me that SharePoint still points to http ://servername/(path for page layouts) no matter how AAM is configured.