Forum Moderators: phranque

Message Too Old, No Replies

Need specific coding for .htaccess file

Specific coding for setting a value in .htaccess

         

lauren11

12:18 pm on Oct 11, 2011 (gmt 0)

10+ Year Member



Hi,

I have an already open question about setting up a .htaccess file and have gotton some great answers on how to do it.

But can anyone please tell me the specific coding, how it actually needs to be worded, to set the value cgi.rfc2616_headers = 0 into the .htaccess file?

Many thanks for any help

phranque

1:22 am on Oct 13, 2011 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



you probably want to look at mod_setenvif:
http://httpd.apache.org/docs/2.2/mod/mod_setenvif.html [httpd.apache.org]

lauren11

8:46 am on Oct 13, 2011 (gmt 0)

10+ Year Member



Thank you for that info phranque, it's much appreciated.

MickeyRoush

5:46 pm on Oct 13, 2011 (gmt 0)

10+ Year Member



But can anyone please tell me the specific coding, how it actually needs to be worded, to set the value cgi.rfc2616_headers = 0 into the .htaccess file?


I thought cgi.rfc2616_headers was a PHP Directive? And that you could set it with php.ini, but that the default was 0 anyways.
[php.net...]

Maybe try one of these in your .htaccess file:

php_value cgi.rfc2616_headers = 0


or

php_flag cgi.rfc2616_headers = 0

lauren11

10:37 pm on Oct 13, 2011 (gmt 0)

10+ Year Member



MickeyRoush thanks for the coding. I had tried just putting the cgi.rfc2616_headers = 0 into my site's php.ini file without the php_value or php_flag before it, which is no doubt why it didn't work. And also, so my hosting has told me, it's the core php.ini or .htaccess files through SSH where I need to put this value. I only hope that's going to be easy. And again thanks for your help.