Forum Moderators: phranque

Message Too Old, No Replies

RewriteEngine on?

.htaccess question

         

keyplyr

7:58 am on Jun 24, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Is it necessary to include 'RewriteEngine on' again after each rule is Final?

RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} Blah_Blah [NC,OR]
RewriteCond %{HTTP_USER_AGENT} Blah_Blah [NC]
RewriteRule!^Blah_Blah\.html$ - [F]

RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} Blah_Blah [NC,OR]
RewriteCond %{HTTP_USER_AGENT} Blah_Blah [NC]
RewriteRule!^Blah_Blah\.html$ - [F]

...or is once enough for the entire .htaccess file?

Thanks

jdMorgan

2:00 pm on Jun 24, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



keyplyr,

Once at the top will do.

Jim