Hi again,

found the solution for both problems with IIRF (Ionic rewriter):

1. Exlcude certain file extensions from routing (passing them as they are);
- RewriteRule ^/(.*(js|ico|gif|jpg|png|css|html|htm))$ /$1 [L,I,U]

2. Exclude certain directories from routing:
- RewriteRule ^/someDirectoryOrPath/(.*)$ /someDirectoryOrPath/$1 [L,I,U]

The above two must be before 
- RewriteRule ^/project/.*$ /project/index.php [L,I,U]

Hope it helps someone.



Foo_bar wrote:
> 
> Hi,
> 
> I'm using IIRF on WinXP-IIS 5 and have the following in the IIRF ini:
>   ; this one is for Neon debuger
>   RewriteRule ^/project/(.*)?(no_remote=1.*)$ /project/index.php?$2
> [L,I,U] 
>   ; for the rest
>   RewriteRule ^/project/.*$ /project/index.php [L,I,U]
> 
> All works fine, except images are also routed to index.php.
> 
> How to exclude certain extensions (JPG|GIF|etc) or certain subdirectories
> (i.e. images) from benig routed in IIRF? To leave them as they are.
> 
> I'm not good at all with PCRE. :-(
> 
> 
> Regards,
> 
> vlatko
> 

-- 
View this message in context: 
http://www.nabble.com/IIRF-routes-images-to-index.php-as-well-tf4804907s16154.html#a13755570
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to