Not a bad try CouponGuy, but there is a little more flexable method reguardless of the directory name. This is untested on my end, but it should be good, or may need a little tweaking.
Code:
RewriteEngine on
# if url is pointing to a valid file, allow it:
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^(.*)$ $1?%{QUERY_STRING} [L]
# if url is pointing to a valid dir, allow it:
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.*)$ $1?%{QUERY_STRING} [L]
# continue rewrites:
RewriteRule ^(.*)/(.*)/(.*)\.html$ index.php?section=$1&categorie=$2&id=$3&%{QUERY_STRING} [L]
RewriteRule ^(.*)/(.*)/ index.php?section=$1&categorie=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)/ index.php?section=$1&%{QUERY_STRING} [L]
__________________
<mgraphic /> - I don't have a solution but I admire the problem.
Last edited by mgraphic; 03-07-2008 at 08:05 PM..
Reason: edited goof
|