Title: RSS Header error
Last modified: August 18, 2016

---

# RSS Header error

 *  [lyle](https://wordpress.org/support/users/lyle/)
 * (@lyle)
 * [20 years, 4 months ago](https://wordpress.org/support/topic/rss-header-error/)
 * Ok I am running a tradescript that requires me to place some code in the root
   index.php (between head tags)
    ————————- so now it looks like this: —————————
   <?php putenv ( “REMOTE_ADDR=”.$HTTP_SERVER_VARS[“REMOTE_ADDR”] ) ; if( $HTTP_SERVER_VARS[“
   HTTP_REFERER”] ) { putenv ( “HTTP_REFERER=”.$HTTP_SERVER_VARS[“HTTP_REFERER”]);}
   else { putenv(“HTTP_REFERER=noref”); } PassThru(“./cgi-bin/top/protect/topref.
   cgi”); /* Short and sweet */ define(‘WP_USE_THEMES’, true); require(‘./wp-blog-
   header.php’); ?> ——————- problem now is i get an error when I follow my RSS link,
   i get this error: ———————— Warning: Cannot modify header information – headers
   already sent by (output started at /web/sites/user/mydomain.com/index.php:6) 
   in /web/sites/user/mydomain.com/wp-rss2.php on line 8 ————————-
 * now if I switch to
    ———————- <?php /* Short and sweet */ define(‘WP_USE_THEMES’,
   true); require(‘./wp-blog-header.php’); putenv ( “REMOTE_ADDR=”.$HTTP_SERVER_VARS[“
   REMOTE_ADDR”] ) ; if( $HTTP_SERVER_VARS[“HTTP_REFERER”] ) { putenv ( “HTTP_REFERER
   =”.$HTTP_SERVER_VARS[“HTTP_REFERER”] ) ; } else { putenv(“HTTP_REFERER=noref”);}
   PassThru(“./cgi-bin/top/protect/topref.cgi”); ?> ——————————– My RSS Feed works
   but my script isnt recording correctly at all Anyone have any ideas how I can
   satisfy both php calls on my index page, I am not a good coder thanks so much

Viewing 1 replies (of 1 total)

 *  Thread Starter [lyle](https://wordpress.org/support/users/lyle/)
 * (@lyle)
 * [20 years, 4 months ago](https://wordpress.org/support/topic/rss-header-error/#post-323431)
 * bump

Viewing 1 replies (of 1 total)

The topic ‘RSS Header error’ is closed to new replies.

## Tags

 * [errors](https://wordpress.org/support/topic-tag/errors/)
 * [RSS](https://wordpress.org/support/topic-tag/rss/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [lyle](https://wordpress.org/support/users/lyle/)
 * Last activity: [20 years, 4 months ago](https://wordpress.org/support/topic/rss-header-error/#post-323431)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
