do you mean $Route->connect('/admin/:controller/*', array('action' => 'index')); and/or $Route->connect('/admin/:controller/:action/*');
? On 1 Cze, 16:15, CakeMan <[EMAIL PROTECTED]> wrote: > Hi, > > I am working on an website in Cakephp 1.1. I need to make the URLs > such ashttp://www.mysite.com/USERNAME > > I have changed the Route in routes.php in config<-App folder to > $Route->connect('/*', array('controller' => 'controllerName', 'action' > => 'actionName')); > > This solved my above problem. However, now i got another problem with > my other static pages such as my contact page is > ashttp://www.mysite.com/contacts > Now this page is also redirecting to the above controller. I have > solved this problem as well with manually mentioning this in > routes.php again > > $Route->connect('/contacts', array('controller' => 'contacts', > 'action' => 'index')); > > This solved my problem. But now i have to enter an Route for every > static page as i have done with contacts page. > > I have lots of lots of static pages. I need to enter an route for all > of them. I don't want to enter so many routes in routes.php. > > Is there any alternative for this ? > > Please help !! > > Thank !! --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---