>
> If you want them both on the same hostname, then you have to decide how the 
> URLs will mingle. Your DocumentRoot will point to one of the two systems, and 
> you'll set up Alias or maybe Rewrite rules for the URLs of the other system. 
> I know CakePHP comes with Rewrite rules that you're supposed to use; perhaps 
> WordPress does too. You'll have to adapt one or both systems' rules to be 
> able to coexist with one another in the way you want. The one you choose to 
> use as the DocumentRoot should be the one that is the "main" system that will 
> be used. For example, if you have a big CakePHP web site with lots of 
> controllers and routes, and then just the homepage will be the WordPress 
> blog, consider pointing the DocumentRoot at the CakePHP app.
>

I like this approach--making DocumentRoot point to the CakePHP app.
I'm just not sure how to or what RewriteRule I need to use to make
http://mydomain.com go to the WordPress "main" ?

> You also mentioned wanting to use the WordPress user authentication system. 
> If you mean that you want a user to be able to log in to your CakePHP web 
> site using their credentials from your WordPress installation, then that's a 
> totally separate topic to research. I see two options for this case: 1) the 
> user gets a separate loginpagefor your CakePHP app, but can provide the same 
> username and password as your WordPress installation uses (you'd have to 
> write your CakePHP authentication code to access the WordPress user database 
> table, and understand how they store passwords); 2) the user only has to log 
> in once, to the WordPress app, and the CakePHP site "knows" this 
> automatically (you'd have to find out how WordPress stores user 
> authentication on the client (cookie?) and figure out how to read it).

Option 2 is what I'm going for so I can also use WordPress/BuddyPress'
registration functionality.

Thanks for the help!

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to