Symfony framework and IIRF

Sep 15, 2010 at 7:39 AM


I'm currently trying to port my .htaccess rewrite rules to the IIRF ini file. However I'm encountering some problems when I need to access files outside the rewritten areas.

My rules looks like this:

StatusInquiry ON /iirfStatus RemoteOk
RewriteLog .\log\
RewriteBase /

# we skip all files with .something except .html
RewriteCond %{URL} /.*\..+$
RewriteCond %{URL} (?!/.*\.html$).*
RewriteRule (.*) /$1 [L]

# we keep the .php files unchanged
RewriteRule (.*\.php)(.*) /web/$1$2 [L]
# finally we redirect to our front web controller
RewriteRule (.*) /web/index.php/$1 [L]

This seem to work with most files. It works for my PHP files and it works for css and images local to my app. But when I try to access files from plugins it fails.

I also get a weird authentication popup that I don't get on my IIS7 server. Anyone know what that might be?


Sep 19, 2010 at 3:43 PM
To diagnose the web auth popups, I suggest that you use a tool like Fiddler or Charles. It will show you the http transactions and you'll be able to see what is triggering the 401 auth challenge. About the iirf rules failing for plugins, you need to show the URL that you're talking about. Also, explain the results you expect, and the results you actually see. The iirf logfile can be helpful if you don't mind wading through lots of diagnostic messages.