You should rather use the &lt;FilesMatch&gt; directive to exclude the files or directories from being served. This would mean that apache will deny any request for those files that match, in addition to that you can also use the &lt;Directory&gt; directive to disallow the complete folder in your Vhost config. The latter method would definitely mean that your apache cant serve the smf forum software.<div>
<div><br></div><div>HTH<br><div>
<br><br><div class="gmail_quote">On Tue, Nov 9, 2010 at 3:25 PM, Marolijo <span dir="ltr">&lt;<a href="mailto:marolijo@yahoo.es">marolijo@yahoo.es</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hello, I have a SMF Forum on the /smf folder<br>
I need to tell .htaccess no to grab all the urls under /smf,<br>
<br>
I tried this without luck, any idea?<br>
<br>
&lt;IfModule mod_rewrite.c&gt;<br>
RewriteEngine on<br>
# A trailing / is added to directory requests by the http.conf or somewhere.<br>
# Exclude the smf directory.<br>
#RewriteCond %{REQUEST_FILENAME} !^smf.*<br>
# Rewrite only if the file is not found.<br>
RewriteCond %{REQUEST_FILENAME} !-f<br>
# Rewrite only if the directory is not found.<br>
RewriteCond %{REQUEST_FILENAME} !-d<br>
# Rewrite a URL to make the request a query parameter of q=original_request.<br>
RewriteRule ^(.*)$ index.html?q=$1 [L,QSA]<br>
<br>
<br>
Thank&#39;s!<br>
<font color="#888888">--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
</font></blockquote></div><br></div></div></div>