I"m missing something -- IfModule fails a TRUE test.

I"m missing something -- IfModule fails a TRUE test.

am 28.01.2008 07:18:43 von -Lost

I'm missing something -- IfModule fails a TRUE test.

I was sifting through some old .htaccess files and updating them to
include:
...

However, it breaks a few rewrite instances -- why? I have no clue.
So, I tried:

...

....and all my rewrite instances began working again.

The module has to be loaded else rewriting wouldn't work. What am I
not understanding?

Thanks!

(Apache 1.3.33 just in case. And the only error is a 404 when it
turns mod_rewrite off.)

--
-Lost
Remove the extra words to reply by e-mail. Don't e-mail me. I am
kidding. No I am not.

Re: I"m missing something -- IfModule fails a TRUE test.

am 28.01.2008 07:27:12 von -Lost

Response to "-Lost" :

> I'm missing something -- IfModule fails a TRUE test.
>
> I was sifting through some old .htaccess files and updating them to
> include:
> ...
>
> However, it breaks a few rewrite instances -- why? I have no clue.
> So, I tried:
>
> ...
>
> ...and all my rewrite instances began working again.

Oops! Forgot to mention that testing directly against mod_rewrite.c
works, just not the module handler.

Thanks.

--
-Lost
Remove the extra words to reply by e-mail. Don't e-mail me. I am
kidding. No I am not.

Re: I"m missing something -- IfModule fails a TRUE test.

am 28.01.2008 17:13:11 von Jim Hayter

-Lost wrote:
> Response to "-Lost" :
>
>> I'm missing something -- IfModule fails a TRUE test.
>>
>> I was sifting through some old .htaccess files and updating them to
>> include:
>> ...
>>
>> However, it breaks a few rewrite instances -- why? I have no clue.
>> So, I tried:
>>
>> ...
>>
>> ...and all my rewrite instances began working again.
>
> Oops! Forgot to mention that testing directly against mod_rewrite.c
> works, just not the module handler.
>
> Thanks.
>

My configurations for Apache 1.3.33 all use ""
for this purpose. They work fine.

HTH,
Jim

Re: I"m missing something -- IfModule fails a TRUE test.

am 28.01.2008 17:29:03 von HansH

"-Lost" schreef in bericht
news:Xns9A33DB342233lostthreads@216.196.97.136...
> I'm missing something -- IfModule fails a TRUE test.
>
> I was sifting through some old .htaccess files and updating them to
> include:
> ...
>
> However, it breaks a few rewrite instances -- why? I have no clue.
> So, I tried:
>
> ...
>
> ...and all my rewrite instances began working again.
>
> The module has to be loaded else rewriting wouldn't work. What am I
> not understanding?
>
> (Apache 1.3.33 just in case. And the only error is a 404 when it
> turns mod_rewrite off.)

Read doc that goes with version used
http://httpd.apache.org/docs/2.1/mod/core.html#ifmodule
Syntax: ...
Compatibility:Module identifiers are available in version 2.1 and later.



HansH

Re: I"m missing something -- IfModule fails a TRUE test.

am 28.01.2008 20:18:47 von -Lost

Response to "HansH" :

>> I'm missing something -- IfModule fails a TRUE test.
>>
>> I was sifting through some old .htaccess files and updating them
>> to include:
>> ...
>>
>> However, it breaks a few rewrite instances -- why? I have no
>> clue. So, I tried:
>>
>> ...
>>
>> ...and all my rewrite instances began working again.
>>
>> The module has to be loaded else rewriting wouldn't work. What
>> am I not understanding?
>>
>> (Apache 1.3.33 just in case. And the only error is a 404 when it
>> turns mod_rewrite off.)
>
> Read doc that goes with version used
> http://httpd.apache.org/docs/2.1/mod/core.html#ifmodule
> Syntax: ...
> Compatibility:Module identifiers are available in version 2.1 and
> later.

Ah shoot, that was it HansH. Thanks for pointing that out.

I am not even sure how or why I was reading a 2.2.2 help file.

--
-Lost
Remove the extra words to reply by e-mail. Don't e-mail me. I am
kidding. No I am not.

Re: I"m missing something -- IfModule fails a TRUE test.

am 28.01.2008 20:20:12 von -Lost

Response to Jim Hayter :


>> Oops! Forgot to mention that testing directly against
>> mod_rewrite.c works, just not the module handler.
>
> My configurations for Apache 1.3.33 all use " > mod_rewrite.c>" for this purpose. They work fine.

Thanks for the response, Jim. HansH got me sorted. I wound up reading
the newest syntax for IfModule rather than what applied to my version.

--
-Lost
Remove the extra words to reply by e-mail. Don't e-mail me. I am
kidding. No I am not.