Mod_Rewrite Not Working

Hey all, can someone tell me what is wrong with the below code? It gives me an internal server error.

<IfModule mod_rewrite.c>
        # Send to index.php unless the request starts with the below.
        RewriteEngine On
        RewriteCond ${REQUEST_URI} !^(/index\\.php|/robots\\.txt|/favicon\\.ico|/license\\.txt|/license_graphtek\\.txt|/images/|/js/|/css/|/user_guide/)
        RewriteRule ^(.*)$ /index.php/$1 [L]
</IfModule>

<IfModule !mod_rewrite.c>
        # If we don't have mod_rewrite installed, all 404's are sent to index.php.
        ErrorDocument 404 /index.php
</IfModule>

Oops, sorry all, mistyped the $ sign here:
${REQUEST_URI}

Should have been %{REQUEST_URI}

D’oh!

Hey, Darren!

REMOVE those <IfModule> wrappers as they will make Apache test for each module on EVERY REQUEST. A webmaster would know that and NOT abuse the server in that way (in other words, I KNOW that you KNOW better!).

Regards,

DK

Interesting, thanks dklynn I will do so for optimization.

Hi Darren,

Sorry, I KNEW that you know better than to use the <IfModule> wrappers - corrected in my post above.

:tup:

Regards,

DK