Hey everyone - We've got a bit of an odd configuration, and I was wondering if anyone had ideas on how we could fix this. We took over hosting of a website this past week that essentially is two sites in one, a bank site and it's parent corp site. The routes.php file is used to determine which 'site' you are on, essentially loading up various pages based on the path. Pretty straightforward.
However, what I'm running into is that any root traffic (www.site1.com/ or www.site2.com/) gets redirected to the corp site because of the routes file. You can see how the routes.php file is set up here: * * first the bancorp... */ Router::connect('/', array('controller' => 'pages', 'action' => 'display', 'bancorphome')); Router::connect('/gpb-in-the-news', array('controller' => 'pages', 'action' => 'display', 'bancorpnews')); Router::connect('/board-of-directors', array('controller' => 'pages', 'action' => 'display', 'bancorpofficers')); Router::connect('/contact-us', array('controller' => 'pages', 'action' => 'display', 'bancorpcontact')); Router::connect('/thank-you', array('controller' => 'pages', 'action' => 'display', 'bancorpthankyou')); Router::connect('/faq', array('controller' => 'pages', 'action' => 'display', 'bancorpfaq')); Router::connect('/privacy', array('controller' => 'pages', 'action' => 'display', 'bancorpprivacy')); /** * then the bank ... */ Router::connect('/home', array('controller' => 'pages', 'action' => 'display', 'bankhome')); Router::connect('/our-proposed-bank', array('controller' => 'pages', 'action' => 'display', 'bankhome')); Router::connect('/executive-team', array('controller' => 'pages', 'action' => 'display', 'bankexecutive')); Router::connect('/board_of_directors', array('controller' => 'pages', 'action' => 'display', 'bankboard')); Router::connect('/take-a-tour', array('controller' => 'pages', 'action' => 'display', 'banktakeatour')); Router::connect('/career-opportunities', array('controller' => 'pages', 'action' => 'display', 'bankcareers')); Router::connect('/contact_us', array('controller' => 'pages', 'action' => 'display', 'bankcontact')); Router::connect('/thank_you', array('controller' => 'pages', 'action' => 'display', 'bankthankyou')); Router::connect('/privacy_policy', array('controller' => 'pages', 'action' => 'display', 'bankprivacy')); /** So, any root path gets sent to the bancorp site. Is there any way to differentiate the two sites, so that maybe it looks for the url and redirects to the appropriate home page (aside from splitting the one site into two)? Thanks! Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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