I'm not that good with rewrite rules, but the only ones we have for our project 
is the standard symfony .htaccess file:

  # we check if the .html version is here (caching)
  RewriteRule ^$ index.html [QSA]
  RewriteRule ^([^.]+)$ $1.html [QSA]
  RewriteCond %{REQUEST_FILENAME} !-f

  # no, so we redirect to our front web controller
  RewriteRule ^(.*)$ index.php [QSA,L]

which seems to redirect to index.php if nothing else was found.

The thing is, if we go to project.lo/retailer/ ('/' at the end) the homepage of 
the retailer app is shown, which is what we expect. If we remove the '/' at the 
end it accesses the module retailer in retailer app which seems really strange 
to me.

On Apr 14, 2010, at 14:27 , NOOVEO - Christophe Brun wrote:

> 
> Hi Lea. 
> 
> My guess is that symfony's routing is not responsible for this behaviour. 
> AMOF, if your browser directs you to index.php or frontend_dev.php and if 
> these files are well configured with some code like the following : 
> 
>       
> require_once(dirname(__FILE__).'/../config/ProjectConfiguration.class.php');
>       $configuration = 
> ProjectConfiguration::getApplicationConfiguration('frontend', 'prod', false);
> 
> then there is no reason why you should display any page from any other 
> application than the frontend one. 
> I'd rather suspect some previous redirection, whether on your web server's 
> initiative or after some directive found in the .htaccess, maybe a line like 
> : 
> 
>       RewriteRule ^([^.]+)$ $1.php [QSA]
> 
> ? 
> 
> 
> -----Message d'origine-----
> De : symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] 
> De la part de Lea Haensenberger
> Envoyé : mercredi 14 avril 2010 11:30
> À : symfony users
> Objet : [symfony-users] Strange Routing Behaviour
> 
> Hi all,
> I have the following apps and module in my project:
> apps and their modules:
> - admin
> - frontend
> - retailer
> - ...
> - retailer
> - retailer
> - ...
> 
> The frontend app is the default app.
> When I enter the url project.lo/retailer it goes to the retailer module in 
> the retailer app. Shouldn't that go the the retailer module in the frontend 
> app? The retailer module in the retailer app should be accessed with 
> project.lo/retailer/retailer. Or am I wrong?
> Can someone explain to me that behavior and tell me, how I can "fix"
> it besides renaming the modules or the app?
> 
> Thanks!
> 
> Cheers,
> Lea
> 
> --
> 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
> 
> To unsubscribe, reply using "remove me" as the subject.
> 
> 
> -- 
> 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

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