Welcome to WebmasterWorld Guest from 18.204.227.250

Forum Moderators: Ocean10000 & phranque

Message Too Old, No Replies

RewriteEngine on?

.htaccess question

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

Senior Member from US 

WebmasterWorld Senior Member keyplyr is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Sept 26, 2001
posts:12913
votes: 893


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

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

Senior Member

WebmasterWorld Senior Member jdmorgan is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 31, 2002
posts:25430
votes: 0


keyplyr,

Once at the top will do.

Jim