Issue with wordpress set up, please help!

mdsurf

Senior Member
Joined
Jun 16, 2011
Messages
993
Reaction score
283
Hello everyone,

I set up a new wordpress theme on one of my domains and am having issues with it. for some reason everything works fine when i type in www.mydomain.com but without the www. i get this error:

Warning: Cannot modify header information - headers already sent by (output started at /home/****/public_html/mydomain.com/index.php:2) in /home/****/public_html/mydomain.com/wp-includes/pluggable.php on line 881

The reason for the *** is its just to protect a path. But other then that I dont know why this is happening, can someone please help. I've tried disabling all the plugins and that didn't help at all!
 
did you install any plugins? Disable all of them and see if you still get the error. You could also try re-installing. Just going from www to sans-www isn't going to break wordpress.
 
Check your .htaccess, you can verify the culprit.
 
So I went under settings and changed the site url from http://www.mydomain.com to http://mydomain.com and the problem has reversed itself, it seems that which ever option i choose to set it on the oposite once causes these problems
 
If you can't pinpoint it, disable the warning messages. In your htaccess file, put this
Code:
php_flag display_startup_errors off
php_flag display_errors off
php_flag html_errors off
php_value docref_root 0
php_value docref_ext 0
 
There must be some plugin that is making it work like this. If you have proper idea about wordpress then you can do that on your own.
 
add this on your .htaccess
Code:
#RewriteCond %{HTTP_HOST} ^domain(dot)coxm
#RewriteRule (.*) hxxp :// www(dot)domain(dot)coxm/$1 [R=301,L]
Just fix the formatting, I can't post links :(
 
Back
Top