you could write a second rewrite rule as a failover... I can't write it offhand (sorry -- just thinking conceptually) but basically, for those that fail the /forums/ condition you do a /forums condition which inserts / into the referred URL.
Am I off base? On Tue, Aug 18, 2009 at 8:02 PM, designv...@gmail.com<designv...@gmail.com> wrote: > > Hi there, > > I have some forums in my webroot and have added the following to my > htaccess: > > RewriteCond %{REQUEST_URI} ^/forums/(.*)$ > RewriteRule ^.*$ - [L] > > And this is fine if I type: > > www.mydomain.com/forums/ > > However if I dont put the trailing slash (www.mydomain.com/forums) I > get redirected to: > > www.mydomain.com/app/webroot/forums/ > > Can anyone help with a quick fix or suggestion? > > TIA > > d. > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---