[support] htaccess for a non Drupal folder

Marolijo marolijo at yahoo.es
Tue Nov 9 09:55:05 UTC 2010


Hello, I have a SMF Forum on the /smf folder
I need to tell .htaccess no to grab all the urls under /smf,

I tried this without luck, any idea?

<IfModule mod_rewrite.c>
RewriteEngine on
# A trailing / is added to directory requests by the http.conf or somewhere.
# Exclude the smf directory.
#RewriteCond %{REQUEST_FILENAME} !^smf.*
# Rewrite only if the file is not found.
RewriteCond %{REQUEST_FILENAME} !-f
# Rewrite only if the directory is not found.
RewriteCond %{REQUEST_FILENAME} !-d
# Rewrite a URL to make the request a query parameter of q=original_request.
RewriteRule ^(.*)$ index.html?q=$1 [L,QSA]


Thank's!


More information about the support mailing list