Problem:
I am moving a site from a Cake 1.1 development configuration to a
production configuration in a shared hosting environment. I am using
mod_rewrite. I can display pages successfully using the url
http://www.domain_name.com/controller/action and also using
http://www.domain_name.com/index.php?url=controller/action
However, when my application reaches a $this->redirect('controller/
action') I receive a 404 page not found. The Apache error log shows a
File Does Not Exist error with a path of /home/virtual/site62/fst/
home/action where action was the action from the URL. I have
confirmed the controllers and views exist -- in fact the controllers
are the same controllers I can reach successfully without a redirect.
I have had this site running successfully in a development
configuration on both Windows XP and on a different Linux hosting
service.
I have taken the following steps in trying to move to a production
configuration:
1. Moved the contents of webroot to the /public_html folder
2. Moved the contents of the cake and app directories to /home/cake
and /home/app respectively.
3. Updated index.php so that ROOT is defined as '/home' ; APP_DIR is
defined as 'app' and 'CAKE_CORE_INCLUDE_PATH' is defined as '/home/
cake' .
I have removed the index.php and .htaccess files that were in the cake
and app directories, but still have .htaccess in the /public_html
folder and it reads as follows:
Action php5-script /interpreters/php5-script
AddHandler php5-script .php
RewriteBase /
<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
</IfModule>
Any help would be greatly appreciated.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---