Dear All
 
I started using the CakePHP (2.3.5) with Apachec 2.2 as the WebServer.
I am observing one problem, that http://localhost:8080/ does not direct to 
the specific page I have routed in route.php.
 
(A) In route.php, I have added this as my first route:
 Router::connect('/', array('controller' => 'welcomes', 'action' => 
'index'));
 
(B) What I observe that if I change the same route as below:
 Router::connect('/welcome', array('controller' => 'welcomes', 'action' => 
'index'));
then with the url: *http://localhost:8080/* <http://localhost:8080/>welcome it 
renders the specific page as is intended.
 
Not able to figure out why the root url (as in (A)) does not route to 
correct page, instead it routes to the default CakePHP index page.
 
To disable the default routing, I have commented following line in 
route.php:
 /**require CAKE . 'Config' . DS . 'routes.php'; **/
 
Does anyone of you have faced similar problem and how did you solve it?
 
Best regards
Chandan

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to