|
Posted by -Lost on 09/30/41 11:50
> AFAIK, <IfModule> Blocks don't work in the .htaccess context:
>
The context within which IfModule works is "everywhere". So, use IfModule in your
..htaccess. Helps to cut down on "Internal Server Errors" if it does not work correctly.
<IfModule mod_rewrite.c>
> RewriteEngine On
> RewriteCond %{REQUEST_URI} ^/[^\.]+[^/]$
> RewriteRule ^(.*)$ http://%{HTTP_HOST}/$1/ [R=301,L]
</IfModule>
> Plus, on a side note, there is no "RewriteEngine On" directive in the
> posted code block, so that may be another reason.
I figured the author of this topic *knew* the RewriteEngine directive, hence my error.
The above modification should work, assuming everything else is in place (see my post
directly before this one).
Thanks Colin.
-Lost
[Back to original message]
|