I had the same kinda requirement and I solved it using a .htaccess file. My file structure was like the following:
htdocs -> .htaccess ->admin -> -> .htaccess ->mySymfonyProjectFolder -> ->web As you can see I have a .htaccess file under the web root folder which redirects users to mySymfonyProjectFolder->web->index.php I have another folder called admin which has another .htaccess file which redirects users to mySymfonyProjectFolder->web->backend.php here is what I have in the .htaccess file in the htdocs folder: Options +FollowSymLinks +ExecCGI <IfModule mod_rewrite.c> RewriteEngine On RewriteRule ^(.*)$ /mySymfonyProjectFolder/web/index.php [QSA,L] </IfModule> here is what I have in the .htaccess file in the htdocs/admin folder: Options +FollowSymLinks +ExecCGI <IfModule mod_rewrite.c> RewriteEngine On RewriteRule ^(.*)$ /mySymfonyProjectFolder/web/backend.php [QSA,L] </IfModule> Hope you will find it helpful! Peace! On Jul 9, 7:49 am, Sid Ferreira <sid....@gmail.com> wrote: > Guys, how can I achieve the following: > > I have a working frontend in the rootdir. And the backend I want to be > inside the '/admin' directory. It possible, I don't want to have double > files in images and stuff, so, could I use 'relative_url_root' and something > else to make it work? > > Sidney G B Ferreira > Desenvolvedor Web --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---