Le 09/05/2011 13:24, keymaster a écrit :
Thanks for trying to help, Christophe.
Cleared the cache using CLI:
php app/console cache:clear
by default, the console run in dev environment. You need to use --env=prod
http://localhost/Symfony/web/app_dev.php/demo/contact => works
http://localhost/Symfony/web/app.php/demo/contact => doesn't work (**
this is interesting - it should work ... hmmm)
http://localhost/Symfony/web/demo/contact => doesn't work
if app.php does not work, it means that the issue is in the prod
environment, not in the apache config as this does not rely on the
rewriting.
Also check your logs for the prod environment to see what went wrong
http://localhost/Symfony/web/app_dev.php/demo/hello/myname => works
http://localhost/Symfony/web/app.php/demo/hello/myname => works
http://localhost/Symfony/web/demo/hello/myname
<http://localhost/Symfony/web/demo/hello/myname> ==> works
The above urls are all straight out of the demo for the vanilla beta1
install.
Adding RewriteBase /Symfony/web:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /Symfony/web
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ app.php [QSA,L]
</IfModule>
Cleared the cache again from CLI.
500 Server errors on everything now.
If the RewriteBase were the issue, wouldn't it affect all urls, not
just /demo/contact? It should also affect the /demo/hello/myname url
too, shouldn't it?
--
Christophe | Stof
--
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