hi all,
firstly, i've been using .htaccess to do rewrites for a while but to make search friendly urls with swfaddress and on flash sites. now i'm getting into making php stuff with haxe and i'm starting to need to get deeper into the mod_rewrite world...
my problem is this i have currently this as my .htaccess content...
RewriteEngine On
RewriteBase /realegest/
RewriteRule ^([^/\.]+)/?$ index.php?lang=$1 [L]
RewriteRule ^([^/\.]+)/([^/\.]+)/?$ index.php?lang=$1&mainSection=$2 [L]
RewriteRule ^([^/\.]+)/([^/\.]+)/([^/\.]+)/?$ index.php?lang=$1&mainSection=$2&action=$3 [L]
which is all gravy as far as telling my app what to write to the browser as pages BUT, now a page which reads a directory of available files to download fails.
i think, and obviously i'm no expert that the opendir call in the php when requesting /realegest/downloads/subDirectory/ is having this rewritten as index.php?lang=downloads&mainSection=subDirectory which is obviously going to break it.
sooooo, after a google and a quick look around this forum i found some stuff about RewriteCond, and i added the following above the 3 rewriterules...
RewriteCond %{REQUEST_URI} !^/realegest/downloads
but no dice, anyone able to help me take the last step?
thanks in advance,
tom.