RewriteEngine on
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1This rewrites only if the file and/or directory does not exist. Rob On Sat, Jul 12, 2008 at 11:41 AM, Steven <[EMAIL PROTECTED]> wrote: > This question isn't really specific to ZF, but I'm hoping somebody can help > anyway. > > Currently my .htaccess file just has the basic rewrite instructions: > > RewriteRule !\.(ico|gif|jpg|png|css|pdf|js|exe|zip|xml)$ index.php > > However, I have forums under http://url.com/forums that I want excluded > from the rewrite. It's been a while since I've done any heavy rewriting, so > I'm having trouble getting it working. > > So far I've tried: > > RewriteRule !(\.(ico|gif|jpg|png|css|pdf|js|exe|zip|xml)$|^/forums/(.*)) > index.php > > and variations thereof with no success. Any tips? > > Cheers, > -- Steven > -- Robert Riggen - Zend Certified Engineer Big Yellow Technologies, LLC Essex Junction, VT 05452 802.578.6719 [EMAIL PROTECTED]
