Ok I found the perfect solution :

http://kannapiran1986.blogspot.com/2009/03/symfony-websitebackendphp-to.html


Here is the solution for rewriting website/backend.php  to website/
admin and makes the admin area to work.

1. Create a folder "admin" inside "web" folder. Copy here the
same .htaccess file and change this line:

RewriteRule ^(.*)$ index.php [QSA,L]

to:

RewriteRule ^(.*)$ ../backend.php [QSA,L]

2. Then go to routing file for backend (app/backend/config/
routing.yml) and add folder name to all your routes defined there. Ex:

# default rules
homepage:
url: /admin/
param: { module: default, action: index }
.
.
.

3. Set no_script_name to "on" in your backend settings (app/backend/
config/settings.yml) file:

prod:
.settings:
no_script_name: on

4. Clear Cache and now you should be able to get to your backend
using: http://mydomian.com/admin/ without problems

-- 
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to