Hi, i think the best practice is to have a frontend app and a backend app generated in your project and play with symfony routing (.yml)
what you are trying to achieve is breaking the MVC entry point which is index.php your 404 errors come up because: RewriteRule ^(.*)$ index.php [QSA,L] which says "everything" goes in the index.php, in the current directory, Append the Query String e.g. /blah?id=1&value=2 or any other combination and this is the Last rule, if matched than don't process any rules. if you have another app other than symfony in your admin folder than you could put a rewrite condition and a rule, above the rule declared above. if the conditions are met, than L will ensure that it's the Last processed one. RewriteCond %{REQUEST_URI} ^/admin/(.*)$ RewriteRule ^/admin/(.*)$ /admin/index.php [QSA,L] (this doesn't work ... hope somebody has a different approach ) anyone? On Thu, Dec 11, 2008 at 6:33 PM, Eno <symb...@gmail.com> wrote: > > On Dec 10, 1:32 pm, zero0x <zero0...@gmail.com> wrote: > > > I have this strange problem - I have htaccess in my web dir - and > > there's a admin folder (with index.php as backend app) > > > > When I go to server/admin - I get frontend's 404 - same for server/ > > admin/ > > > > When I go to server/admin/index.php - everything works just fine.. > > > Do you have no_script_name switched on for the admin app? > > > -- > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---