htaccess problem
Posted: Tue Feb 20, 2007 9:37 pm
I'm using cms-ms with nice mod_rewrite rules, but I want to exclude one directory from being rewritten.
My current htaccess files looks like this:
I have directory named 'beheer' and www.website.com/beheer/ should just go to that directory.
I thougth this rule prevents it from being rewritten:, but that ain't working.
Searching over the internet I found the following rule that could help:
but this also didn't help.
I have no clues left to solve this...can anyone help?
My current htaccess files looks like this:
Code: Select all
Options +FollowSymLinks
RewriteEngine on
RewriteBase /
# 301 Redirect all requests that don't contain a dot or trailing slash to
# include a trailing slash
RewriteCond %{REQUEST_URI} !/$
RewriteCond %{REQUEST_URI} !\.
RewriteRule ^(.*) %{REQUEST_URI}/ [R=301,L]
# Rewrites urls in the form of /parent/child/
# but only rewrites if the requested URL is not a file or directory
#RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteCond %{REQUEST_FILENAME} !-d [NC]
RewriteRule ^(.+)$ index.php?page=$1 [QSA]I thougth this rule prevents it from being rewritten:
Code: Select all
RewriteCond %{REQUEST_FILENAME} !-d [NC]Searching over the internet I found the following rule that could help:
Code: Select all
RewriteCond %{REQUEST_URI} !/beheer/(.*)$
RewriteRule ^.*$ - [L]I have no clues left to solve this...can anyone help?