My Site is not opening in IE. I know about CSS incompatibilities this is why I added the following code to redirect to a static page if UserAgent belongs to Internet Explorer. The code that detects IE and redirects is given below:
Site link is:
http://adnansiddiqi.com/main.html
The header file is included on top of the main.php
Please guide!
Now that you’ve got the site working properly, we finally have an error message:
See item 6 from the list below. Don’t call
header()after you’ve already sent output. You must call it before any and all output.Here are a series of things you need to fix/address/attempt:
isMobileSafari, andisOldMobileSafari.<title>needs to be within your<head>.<body>tag.<?php ... ?>)header()after you’ve already output content.I tried accessing the same page in Chrome, thinking maybe you had broken your user-agent sniffing code, but I found that within Chrome as well nothing is output after the opening
<body>tag.I would try to diagnose the reason why your body isn’t being output, but you’ve not provided enough code for us to do that. Please provide us a bit more to further assist you.
The quick solution is to avoid user-agent sniffing code, and instead detect features.