thanks for your response,

all works perfectly with:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase / 

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [QSA,L]

# force url with no www
RewriteCond %{HTTP_HOST} ^www\.([^.]+\.[^.]+)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301]

# force url with no index.php
RewriteCond %{THE_REQUEST} index.php
RewriteRule ^index.php/(.*)$ http://%{HTTP_HOST}/$1 [R=301,NS]
</IfModule>


BUT if i make a request to *www.example.com/mypage* i'm redirected to *
example.com/* (instead of example.com/mypage), so the problem is here:
# force url with no www
RewriteCond %{HTTP_HOST} ^www\.([^.]+\.[^.]+)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301]

many thaks

-- 
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