Is this the right syntax?
if (BOLTconfig('serverHeaders') == 'true')
Seems that other things that look at BOLTconfig are using something like:
BOLTconfig('BOLTautoLines', 'true');
Where the item being look for is preceded with BOLT
Changing lines in engine.php seem to make it work..
if (BOLTconfig('*BOLT*serverHeaders') == 'true') header('HTTP/1.1 404 Not
Found');
and
if (BOLTconfig('*BOLT*serverHeaders') == 'true') header('HTTP/1.1 403
Forbidden');
On Tue, Jan 25, 2011 at 11:34 AM, Kevin <[email protected]> wrote:
> Dan, did you get a chance to see why this didn't work?
>
> I added serverHeaders: true and it made no difference. I tried the same
> on a few others with the same results.
>
> They return *HTTP/1.1 200 OK
> Regardless of what page I hit, existing or not.*
>
> I see where the code is in engine.php, but I've not tried to setup some
> sort of test to see if it is triggering or not.
>
> These are all 3.4.14.
>
> On Sun, Jan 23, 2011 at 7:38 PM, Kevin <[email protected]> wrote:
>
>> Tried that and it didn't seem to make a change. Still outputs a 200 code.
>>
>> On Sun, Jan 23, 2011 at 7:22 PM, The Editor <[email protected]> wrote:
>>
>>> Try putting serverHeaders: true in site.config and see if that works.
>>>
>>> We could make it the default easily enough. I'm open to arguments for
>>> the pro's con's.
>>>
>>> Cheers,
>>> Dan
>>>
>>>
>>> On Sun, Jan 23, 2011 at 7:56 PM, Kevin <[email protected]> wrote:
>>> > I've noticed lots of hits for an older site from search engines for
>>> content
>>> > that simply does not and should not exist. currently that triggers the
>>> > action.missing page which from the logs shows it is return code of 200.
>>> >
>>> > Is there a way to get action.missing to issue a 404 code?
>>> >
>>> > Example log entry:
>>> >
>>> > ycar8.mobile.re3.yahoo.com - - [23/Jan/2011:19:23:42 -0500] "GET
>>> > /greyhound.htm HTTP/1.1" 200 14435 "-" "YahooCacheSystem"
>>> >
>>> > I saw a posting titled "Reporting 404 messages to error logs" which
>>> someone
>>> > was modifying the library.php but your reply indicated you had already
>>> added
>>> > hooks to do this.
>>> >
>>> > Perhaps this should be a default ??
>>> >
>>> > --
>>> > You received this message because you are subscribed to the Google
>>> Groups
>>> > "BoltWire" group.
>>> > To post to this group, send email to [email protected].
>>> > To unsubscribe from this group, send email to
>>> > [email protected]<boltwire%[email protected]>
>>> .
>>> > For more options, visit this group at
>>> > http://groups.google.com/group/boltwire?hl=en.
>>> >
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "BoltWire" group.
>>> To post to this group, send email to [email protected].
>>> To unsubscribe from this group, send email to
>>> [email protected]<boltwire%[email protected]>
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/boltwire?hl=en.
>>>
>>>
>>
>
--
You received this message because you are subscribed to the Google Groups
"BoltWire" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/boltwire?hl=en.