Hi All, Can you please help me with this website issue. Its a custom website in PHP with Blog included at the bottom. WORKS PERFECT : When typed http://wwww(.)domainaname(.)com But DOESNT WORKS : When typed http://domainname(.)com or DOESNT WORKS : Even When typed http://www(.)domainname(.)com/index(.)php Code (markup): So if you see only when www.domainname.com is typed then only it works well If www is removed from domain name then I get an error Also I get an error if I add domainname.com/index.php ERROR : Warning: Cannot modify header information - headers already sent by (output started at /home/content/d/o/m/domainbuyerz/html/index.php:7) in /home/content/d/o/m/domainbuyerz/html/wp-includes/pluggable.php on line 850 Summary : Error throw when typed domainname.com and Works fine with No error when www is typed meaning www.domainname.com works fine To see Live Error click here : Error without www & No Error with www All the code for above files index.php, pluggable.php & wp-blog-header.php is copied at below locations for reading, I have copied the code as follows index.php is found here : http://snipt.org/Umo pluggable.php is found here : http://snipt.org/Ump wp-blog-header.php is found here : http://snipt.org/Ung Can anybody suggest what is going wrong and Please help me to fix this issue Thanks a lot in advance Regards, Merlin seo
Hi Crivion, Tried it but same result Guys, Awaiting more help, Please help me to fix this issue , Thanks a lot in advance
"...Cannot modify header information - headers already sent by..." usually means that some content has already been sent to the browser before the request to send headers. An example would be if you output some content, the use header redirect within the code. I'd check wp-includes/pluggable.php on line 850 for any output of content to screen.
put ob_start(); at the top. this is not 'best practice' code, but it works in a pinch. what it does if buffer all output, so the headers go first. either put ob_flush(); after you've finished messing with the headers or just leave it and php will clear the buffer at the end of the document.
Can you please check and let me know I have copied the code for pluggable.php is found here : http://snipt.org/Ump