I'm missing something -- IfModule fails a TRUE test.
I'm missing something -- IfModule fails a TRUE test.
I was sifting through some old .htaccess files and updating them to
include:
<IfModule rewrite_module>...</IfModule>
However, it breaks a few rewrite instances -- why? I have no clue.
So, I tried:
<IfModule !rewrite_module>...</IfModule>
....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.
Response to "-Lost" <maventheextrawords [at] techie.com>:
> I'm missing something -- IfModule fails a TRUE test.
>
> I was sifting through some old .htaccess files and updating them to
> include:
> <IfModule rewrite_module>...</IfModule>
>
> However, it breaks a few rewrite instances -- why? I have no clue.
> So, I tried:
>
> <IfModule !rewrite_module>...</IfModule>
>
> ...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.
-Lost wrote:
> Response to "-Lost" <maventheextrawords [at] techie.com>:
>
>> I'm missing something -- IfModule fails a TRUE test.
>>
>> I was sifting through some old .htaccess files and updating them to
>> include:
>> <IfModule rewrite_module>...</IfModule>
>>
>> However, it breaks a few rewrite instances -- why? I have no clue.
>> So, I tried:
>>
>> <IfModule !rewrite_module>...</IfModule>
>>
>> ...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 "<IfModule mod_rewrite.c>"
for this purpose. They work fine.
HTH,
Jim
Re: I'm missing something -- IfModule fails a TRUE test.
"-Lost" <maventheextrawords [at] techie.com> schreef in bericht
news:Xns9A33DB342233lostthreads [at] 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:
> <IfModule rewrite_module>...</IfModule>
>
> However, it breaks a few rewrite instances -- why? I have no clue.
> So, I tried:
>
> <IfModule !rewrite_module>...</IfModule>
>
> ...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:<IfModule [!]module-file|module-identifier> ... </IfModule>
Compatibility:Module identifiers are available in version 2.1 and later.
HansH
Re: I'm missing something -- IfModule fails a TRUE test.
Response to "HansH" <hansh [at] invalid.invalid>:
>> I'm missing something -- IfModule fails a TRUE test.
>>
>> I was sifting through some old .htaccess files and updating them
>> to include:
>> <IfModule rewrite_module>...</IfModule>
>>
>> However, it breaks a few rewrite instances -- why? I have no
>> clue. So, I tried:
>>
>> <IfModule !rewrite_module>...</IfModule>
>>
>> ...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:<IfModule [!]module-file|module-identifier> ... </IfModule>
> 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.
Response to Jim Hayter <see.reply.to [at] nowhere.invalid>:
<snip>
>> 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 "<IfModule
> 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.