Reply to Re: MOD rewrite novice here

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация