• In Chrome if I type in thenameofmysite.com it loads properly. But then if I put in http://www.thenameofmysite.com it states: Warning: Cannot modify header information – headers already sent by [locations on my server] on line 875 in pluggable.php

    I’m also confused as to why Firefox adds www. to the front of my domain but chrome is not?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter MeowAttack

    (@meowattack)

    This function in pluggable is:

    function wp_redirect($location, $status = 302) {
    	global $is_IIS;
    
    	$location = apply_filters('wp_redirect', $location, $status);
    	$status = apply_filters('wp_redirect_status', $status, $location);
    
    	if ( !$location ) // allows the wp_redirect filter to cancel a redirect
    		return false;
    
    	$location = wp_sanitize_redirect($location);
    
    	if ( !$is_IIS && php_sapi_name() != 'cgi-fcgi' )
    		status_header($status); // This causes problems on IIS and some FastCGI setups
    
    	header("Location: $location", true, $status);
    }

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

    I’m thinking this error has something to do with how I have my wordpress install and .htaccess setup….

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Warning: Cannot modify header information’ is closed to new replies.