I finally have my project up on a production server. My client is using goDaddy.com. Following my research here and other places, I uploaded the project, verified folder write-ability for /tmp and the subordinates, cleared the /tmp directory contents, and changed the database.php file (not sure if that part is working yet).
My folder structure looks like this: / [root] /reporting /reporting/.htaccess /reporting/app /reporting/app/[everything else app replated including /tmp and / webroot] /reporting/app/.htaccess /reporting/app/webroot/.htaccess /reporting/cake /reporting/index.php /reporting/README /reporting/vendors My site is here http://bgnation.ca/reporting/. The initial page renders fine (I haven't replaced the lorem ipsum yet... mea culpa...). However, when I try to log in on the side bar I receive a 404 error for http://bgnation.ca/users/login. Using a URL to access any other controller action yields the same result. The 'Home' button on the navigation bar works however. I changed the routes.php file to be this, just commenting out a chunk: <?php Router::connect('/tests', array( 'controller' => 'tests' ,'action' => 'index' ) ); Router::connect('/', array( 'controller' => 'pages' ,'action' => 'display' ,'/index' ) ); // Router::connect('/pages/*', // array( // 'controller' => 'pages' // ,'action' => 'display' // ) // ); ?> The.htaccess file in /webroot/ was changed to add a '/' in front of the 'index' as per this article about hosting on goDaddy.com: http://techiedesi.com/post/327-setup-cakephp-modrewrite-to-work-with-godaddy-shared-linux-hosting-package. So it looks like this: <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ /index.php?url=$1 [QSA,L] </IfModule> The.htaccess file in /app was changed to look like this (just added the 'RewriteBase /' line): <IfModule mod_rewrite.c> RewriteEngine on RewriteBase / RewriteRule ^$ webroot/ [L] RewriteRule (.*) webroot/$1 [L] </IfModule> In order to have even the first page render, I had to leave the .htaccess file at the root of my project looking like this: <IfModule mod_rewrite.c> RewriteEngine on RewriteRule ^$ app/webroot/ [L] RewriteRule (.*) app/webroot/$1 [L] </IfModule> All of this works on localhost yet not on the production server. So is something wrong with my routes.php file? I'm sure it is simple, but I just don't see it. I have tried to do my research but cannot find something that works. Would someone help me please? I am DITW (dead in the water) at this point. Thanks! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] 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 -~----------~----~----~----~------~----~------~--~---
