Im pretty sure you don't need to change .htaccess for subdomains to work…
I would try to set the session for any subdomain at there bottom of app/Config/bootstrap.php:
Andras Kende
On Jan 10, 2013, at 8:37 AM, Neil Berrow <nsberrow@gmail.com> wrote:
I really hope someone could help.It's been driving me crazy for 2 days, I've tried so many configurations to get my app working.I moved it from 1 domain to another, and although it renders the 1 page it doesn't login or go to sign up like it used to.I have:mod_rewrite onWildcard installedCurl is enabledThe database connects and the paths are correct, it renders the homepage and login, but after login it doesn't redirect to the users account subdomain like it should.For example, the site homepage http://www.cloudpollen.com/The login link goes here http://www.cloudpollen.com/loginYou login with these details jimmy / stevenIt then redirects the homepageI can only image it might be the .htaccess, but I've tried numerous versions but nothing, here's what I've tried:<IfModule mod_rewrite.c>RewriteEngine onRewriteBase /app/RewriteRule ^$ app/webroot/ [L]RewriteRule (.*) app/webroot/$1 [L]</IfModule><IfModule mod_rewrite.c>RewriteEngine onRewriteRule ^$ app/webroot/ [L]RewriteRule (.*) app/webroot/$1 [L]</IfModule>and<IfModule mod_rewrite.c>RewriteEngine onRewriteBase /app/RewriteCond %{HTTP_HOST} ^(www\.)?cloudpollen.com$RewriteRule ^$ app/webroot/ [L]RewriteCond %{HTTP_HOST} ^(www\.)?cloudpollen.com$RewriteRule (.*) app/webroot/$1 [L]</IfModule>I also tried modifying the above to get some kind of result but all I got were 500 errorsCan anyone help?--
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
No comments:
Post a Comment