Hi there,

I am trying to configure mode_rewrite with symfony2 and I must say I
struggle. So what I got so far is.


RewriteCond %{HTTP_HOST} ^localhost/$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^/(.*)      http://localhost/app.php/$1     [PT,L,QSA]

But I also want to use the dev environment when I prepend /dev/ to the
uri

so:  localhost/foo/bar  should go to localhost/app.php/foo/bar
but  localhost/dev/foo/bar should go to localhost/app_dev.php/foo/bar

so I added another ruleset

RewriteCond %{REQUEST_URI} ^dev/$
RewriteRule ^/dev/(.*)  http://localhost/app_dev.php/$1 [PT,L,QSA]

but it doesn't work.

If somebody has a simular working config I would really appreciate if
I could have a look at it. Actuallay any ideas how to do that are very
welcome.

thanks a lot.
franco

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to