So why do you even have this route?

Router::connect('/:controller/:action', array
('controller'=>'shorteneds', 'action'=>'index'));

If you go to /shorteneds/index/ it will work automatically without the
need for a route.

On Sep 15, 7:57 am, aimformyleftnut <zasada...@gmail.com> wrote:
> OK so -- Solved this problem late last night.
>
> It had to do with the .htaccess setup in my top level directory -- i
> dunno if this will always be the solution, but if you change the
> rewrite base to the location of your app (i.e. in my case /app) it
> takes care of all this malarkey.  I should have probably read more
> closely the documentation in the manual regarding htaccess setup.  So
> if anyone has a similar problem and has examined carefully their
> routing configuration -- check your htaccess next and if you need help
> check out this 
> here:http://book.cakephp.org/view/37/Apache-and-mod_rewrite-and-htaccess
>
> BZ
>
> On Sep 14, 11:32 pm, aimformyleftnut <zasada...@gmail.com> wrote:
>
> > I am INCREDIBLY frustrated right now -- mostly because NOTHING has
> > gone right so far in this little endeavor.
>
> > At this point, I'm trying to map urls to repsective controllers and
> > actions like so:
>
> > Router::connect('/:controller/:action', array
> > ('controller'=>'shorteneds', 'action'=>'index'));
>
> > i've tried every permutation imaginable (empty array, only controller,
> > only action, etc)
>
> > whenever i submit a url i.e.http://domain.com/nameofcontroller/action
> > -- it takes the last argument, in this example url it would be action
> > and tries to find a stupid controller with a name matching action.
> > why is my route only looking at the last url argument... i want to map
> > both the controller and the action but it is not cooperating at all.
>
> > thank you, please save my sanity.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to