What do you mean? What info on Auth config should i post?
> What does your login have in it?
users_controller.php has this function. nothing more than what the
default cakePHP login has. asks for username and password.
function login() {
// http://book.cakephp.org/view/643/Preparing-to-Add-Auth
// Authenticate Magic
// http://book.cakephp.org/view/649/Logging-in
if ($this->Session->read('Auth.User')) {
$this->Session->setFlash('You are logged in!');
$this->redirect('/', null, false);
}
//
}
> Are you using mod_rewrite?
I have these 3 .htaccess and 3 index.php files
####
/var/www/web2/web/.htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^$ app/webroot/ [L]
RewriteRule (.*) app/webroot/$1 [L]
</IfModule>
####
/var/www/web2/web/index.php
contains :
define('APP_DIR', 'app');
define('WEBROOT_DIR', 'webroot');
define('WWW_ROOT', ROOT . DS . APP_DIR . DS . WEBROOT_DIR . DS);
define('ROOT', dirname(__FILE__));
// should above be : define('ROOT','/var/www/web2/web');
####
/var/www/web2/web/app/.htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^$ webroot/ [L]
RewriteRule (.*) webroot/$1 [L]
</IfModule>
/var/www/web2/web/app/index.php
require 'webroot' . DIRECTORY_SEPARATOR . 'index.php';
####
/var/www/web2/web/app/webroot/.htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
</IfModule>
####
/var/www/web2/web/app/webroot/index.php
contains :
define('ROOT', '/var/www/web2/web');
define('APP_DIR', 'app');
define('CAKE_CORE_INCLUDE_PATH', '/var/www/web2/web');
> Have you checked what headers the server is returning?
How is this done?
> Also, why do you have app in the URL in the first place?
> Why not set app to be the webserver's root?
How do I do this?
thanks, i hope these info help.
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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
No comments:
Post a Comment