Title: CGI Error from changing permalinks
Last modified: August 19, 2016

---

# CGI Error from changing permalinks

 *  [nicolasfox](https://wordpress.org/support/users/nicolasfox/)
 * (@nicolasfox)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/cgi-error-from-changing-permalinks/)
 * I changed my permalinks from default to Day and name and now a lot of my links
   quit working like rss feed, when I click on a post, comments, etc. I get the 
   following error:
 * CGI Error
    The specified CGI application misbehaved by not returning a complete
   set of HTTP headers.
 * When I change it back to default, they work again but I want to use Day and name
   permalinks. Please help.
 * thanks
    Nick

Viewing 1 replies (of 1 total)

 *  [shane-g](https://wordpress.org/support/users/shane-g/)
 * (@shane-g)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/cgi-error-from-changing-permalinks/#post-1179196)
 * Hi,
 * Have a check with this:
 * 1) If your blog is running on PHP 5.X version then downgrate it to PHP 4.x version.
   
   2) Check log permissions in /wp-includes/wp-db.php file and open file and replace
   the code as mentioned below:
 * In wp-db.php around line 163 find the following code:
    error_log($error_str, 
   0)
 * Replace it as this:
 * //ORIGINAL CODE: error_log($error_str, 0);
 * Upload the file and check the website.
 * Also you can refer this case study:
 * [http://www.bestwpthemez.com/wordpress/case-study-the-specified-cgi-application-misbehaved-by-not-returning-a-complete-set-of-http-headers-%E2%80%93-wordpress-blog-2358/](http://www.bestwpthemez.com/wordpress/case-study-the-specified-cgi-application-misbehaved-by-not-returning-a-complete-set-of-http-headers-%E2%80%93-wordpress-blog-2358/)
 * Thanks,
 * Shane G.

Viewing 1 replies (of 1 total)

The topic ‘CGI Error from changing permalinks’ is closed to new replies.

## Tags

 * [cgi error](https://wordpress.org/support/topic-tag/cgi-error/)
 * [permalinks](https://wordpress.org/support/topic-tag/permalinks/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [shane-g](https://wordpress.org/support/users/shane-g/)
 * Last activity: [16 years, 9 months ago](https://wordpress.org/support/topic/cgi-error-from-changing-permalinks/#post-1179196)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
