I have been having issues with my titles not showing up on my CF pages. I finally looked at the page source in the browser and found that CF is inserting extra <html>, <head> and <body> tags at the beginning of the pages. (see samples below). I'm pretty sure it is the CF engine that is doing this because I took a cfm page and just changed the extension to html and everything worked fine (except the CF code). There weren't any extra tags inserted and the titles was displayed. I also noticed that the CF engine appears to be adding the very first line <!DOCTYPE HTML ...>
Does anyone know why this might be happening?
CF Page - notice extra tags in red
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
Same page with extension changed to html - code is a bit different because style sheet didn't load because it uses cfinclude
if($_SERVER["HTTPS"] != "on")
header("Location: https://" . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]);
Take a look at your Application.cfm or Application.cfc file you probably have that code in there (Application.cfc/cfm runs first on every page request)
That was it.